Django web app for Abeilles Aide et Entraide association.
...
- Python 3.6
- Django 3
- Django-template
- CSS3
- JavaScript vanilla
- sqlite3
-
Clone project, move into abeilles folder
-
Create a Python virtual environnement and activate it:
python -m venv venv . venv/bin/activate
-
Install dependencies:
pip install -r requirements.txt
-
Copy abeilles/settings_specific_sample.py as abeilles/settings_specific.py
-
Update database:
python manage.py migrate
-
Run local server:
python manage.py runserver
-
Be sure venv is started and at project root run:
manage.py createsuperuser
-
Respond...
-
Now you can login at 0.0.0.0:8000/admin/
Data are provided in order to populate database.
Script delete all existing content and users, contains also admin accounts with very low passwords, so...
DO NOT EVER USE POPULATE SCRIPT IN PRODUCTION!
Be also cautious to remove any admin accounts when copying data from instance to another.
-
Activate venv and:
manage.py populate
-
script is here
-
if something goes wrong with database and if you don't give a shit about your content, just delete db.sqlite3 file, then:
manage.py migrate manage.py populate