* Python >=3.5,
* Django = 2.0.*
* MongoDB >= 3.6
* Pipenv >= 11.10
* git >= 2.7.4
- run
git clone https://github.com/samayamnag/events-python.git <projectname>to clone the repository - run
cd <projectname> - run
pipenv shellto enable virtual environment - run
pipenv installto install packages/dependencies - run
cp .env.example .env - Create a database and configure database(MongoDB also) in .env
from django.core.management import utils utils.get_random_secret_key()
-
set
APP_SECRET_KEYin .env -
run
pipenv run python manage.py runserver -
You can access the project something like
http://localhost:8000/
- You can access the events details something like
http://localhost:8000/api/events/<id> - You can create an event something like
http://localhost:8000/api/events/create/