This project is the backend section of greater project that was a startup that got about +50k users.
- Python Version 2
- Django 1.9.11
All the required dependencies are listed in requirements.txt file at root directory. You must create a virtual environment and install them by pip.
All the configuration is located in settings.py at digikunkor app. configurations are seperated into two environments: local and deploy.
For local development, you must use local env. All the settings can be changed based on your environment and ...
For local development you just need sqlite for rational database, memcache for cache and, mongod for NoSql.
This project include the following apps:
- admin app: the admin panel that includes data entry section, report section, configs section and, many others.
- api app: the APIs application that provides the required endpoint to client mobile app.
- main app: the main application that handles authentication, helpers, models definition and many others for other apps.
- Note: There's also
scriptfolder that includes necessary scripts to defining some initial permissions.
To run the program, you can use the following:
- make change in
settings.py:DEV_ENVIRONMENT="local"- make change in this file based on your needs.
- run
makemigrationscommand - run
migratecommand - run
createsuperusercommand - run
shellcommand and the copy/paste from thescriptsfolder and run them in this order:auth_create_groupsauth_create_permissionsgenerate_auth_systems(change its data based on your needs)
- run
runservercommand