68 lines
2.2 KiB
Plaintext
68 lines
2.2 KiB
Plaintext
How to start
|
|
============
|
|
|
|
To work on portail-citoyen just execute the following lines (command
|
|
to launch start with $, other lines are expected output)::
|
|
|
|
$ pip install -r ./requirements
|
|
$ cp local_settings.py.example local_settings.py
|
|
$ ./portail-citoyen syncdb --all # you will be asked to create a new admin user
|
|
Syncing...
|
|
Creating tables ...
|
|
[ snipped ]
|
|
Creating table cmsplugin_a2servicelistplugin
|
|
Creating table registration_registrationprofile
|
|
|
|
You just installed Django's auth system, which means you don't have any superusers defined.
|
|
Would you like to create one now? (yes/no): yes
|
|
Username: admin
|
|
First name: admin
|
|
Last name: admin
|
|
E-mail address: admin@coin.org
|
|
Password:
|
|
Password (again):
|
|
Superuser created successfully.
|
|
Installing custom SQL ...
|
|
Installing indexes ...
|
|
Installed 2 object(s) from 1 fixture(s)
|
|
|
|
Synced:
|
|
> django.contrib.auth
|
|
[ snipped ]
|
|
> registration
|
|
|
|
Not synced (use migrations):
|
|
-
|
|
(use ./manage.py migrate to migrate these)
|
|
$ ./portail-citoyen migrate --fake
|
|
[ lots of migrations running ]
|
|
$ ./portail-citoyen runserver
|
|
Validating models...
|
|
|
|
0 errors found
|
|
April 12, 2013 - 16:04:50
|
|
Django version 1.5.1, using settings 'compte_agglo_montpellier.settings'
|
|
Development server is running at http://127.0.0.1:8000/
|
|
Quit the server with CONTROL-C.
|
|
|
|
The application is now usable at http://localhost:8000/
|
|
|
|
Settings
|
|
--------
|
|
|
|
Settings can be passed using a local_settings.py file or the shell
|
|
environment. Dictionaries are passed by flattening the variable name and the
|
|
dictionnary key separated by an underscore character. For example to passe the
|
|
variable MAIN_SITE_URL in templates, define the following environment
|
|
variable::
|
|
|
|
export PORTAIL_CITOYEN_TEMPLATE_VARS_MAIN_SITE_URL=https://main-site.com/
|
|
|
|
Those variables must be prefixed with PORTAIL_CITOYEN_ when set in a
|
|
local_settings.py file or in the environment.
|
|
|
|
Name Description
|
|
================================ ============================================
|
|
TEMPLATE_VARS dictionnary of variables passed to templates
|
|
PORTAIL_ADMIN_URL URL of the global administration portal
|