Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
campaign
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
La Quadrature du Net
piphone
campaign
Commits
72af5396
Commit
72af5396
authored
Nov 22, 2014
by
Aymeric Barantal
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into org_admin
parents
1376dd38
8d155b55
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
66 additions
and
39 deletions
+66
-39
.gitignore
.gitignore
+10
-0
README
README
+0
-33
README.md
README.md
+50
-0
picampaign/settings.py.sample
picampaign/settings.py.sample
+5
-5
setup.py
setup.py
+1
-1
No files found.
.gitignore
View file @
72af5396
*.pyc
build/
dist/
picampaign.egg-info/
picampaign/settings.py
# virtual environment
ve/
venv/
.venv/
.env/
README
deleted
100644 → 0
View file @
1376dd38
Campaign Manager for PiPhone project
# Installation
## Create a python virtual environment en activate it
virtualenv .env
source .env/bin/activate
## Install package
python setup.py install
# Configuration
Edit settings.py according to what type of database you want to use
and others settings related to your environment.
## Synchronize database
./manage.py syncdb
it will ask for creation of a superuser
If syncdb ran previously, commands are:
./manage.py makemigrations
./manage.py syncdb
## Test
./manage.py runserver
Then open your browser to http://127.0.0.1/admin
\ No newline at end of file
README.md
0 → 100644
View file @
72af5396
Campaign Manager for PiPhone project
====================================
Installation
------------
### Create a python virtual environment and activate it
virtualenv .env
source .env/bin/activate
### Install package
python setup.py install
Configuration
-------------
Create
**settings.py**
from
**settings.py.sample**
inside the
**picampaign**
module and edit it:
*
modify the value of
**SECRET_KEY**
*
set database configuration according to what type of database you want to use
*
according to your localization, adjust
**LANGUAGE_CODE**
and
**TIME_ZONE**
*
in production environment, set
**DEBUG**
value to
**False**
*
in production environment, set
**TEMPLATE_DEBUG**
value to
**False**
### Synchronize database
./manage.py syncdb
It will ask for creation of a superuser.
If syncdb ran previously, commands are:
./manage.py makemigrations
./manage.py syncdb
### Run website
./manage.py runserver
Then open your browser to http://127.0.0.1:8000/admin
picampaign/settings.py
→
picampaign/settings.py
.sample
View file @
72af5396
...
...
@@ -17,12 +17,12 @@ BASE_DIR = os.path.dirname(os.path.dirname(__file__))
# See https://docs.djangoproject.com/en/1.7/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY
=
'
@q8%6uzh(bku)zmkl$&*_8m3(!f^rpw+d=&zi7llu=fjps!f_x
'
SECRET_KEY = '
select a secret key
'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG
=
Tru
e
DEBUG =
Fals
e
TEMPLATE_DEBUG
=
Tru
e
TEMPLATE_DEBUG =
Fals
e
ALLOWED_HOSTS = []
...
...
@@ -71,9 +71,9 @@ DATABASES = {
# Internationalization
# https://docs.djangoproject.com/en/1.7/topics/i18n/
LANGUAGE_CODE
=
'
en-us
'
LANGUAGE_CODE = '
fr-FR
'
TIME_ZONE
=
'
UTC
'
TIME_ZONE = '
Europe/Paris
'
USE_I18N = True
...
...
setup.py
View file @
72af5396
...
...
@@ -3,7 +3,7 @@ import os
from
setuptools
import
setup
,
find_packages
here
=
os
.
path
.
abspath
(
os
.
path
.
dirname
(
__file__
))
README
=
open
(
os
.
path
.
join
(
here
,
'README'
)).
read
()
README
=
open
(
os
.
path
.
join
(
here
,
'README
.md
'
)).
read
()
requires
=
[
'django'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment