Skip to content

pranav94/djangoProject

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

djangoProject

This is a placeholder for the test Django project built for learning. This was built using the official django documentation. This serves no other purpose than documentating the framework, libraries that were used and will not be maintained anymore.

This project uses Python 3.4.8.

pyenv is used to manage the python version.

pyenv install 3.4.8
pyenv local 3.4.8

In addition, pipenv is used to manage the python dependencies.

pipenv install django
pipenv shell

Start the django server using

python manage.py runserver

Building a new app in the project.

python manage.py startapp {app}

Take a look at the /admin settings. Django ships with the several apps, all of which are defined in settings.py/INSTALLED_APPS. To setup the database for these apps:

python manage.py migrate

After building the app models, setup the database with

python manage.py makemigrations {app}
python manage.py migrate

This project maintains unit tests using pytest and pytest-django. Run tests using the make rule:

make test

The three endpoints include:

http://127.0.0.1:8000/admin/
http://127.0.0.1:8000/polls/
http://127.0.0.1:8000/polls/<question_id>/

About

This is a test Django project for learning.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published