-
Run the following command in your virtualenv for your Django Project:
pip install -e git+https://github.com/noopurphalak/sample-django-package#egg=sample-django-package
-
Add "sample" to your INSTALLED_APPS setting like this:
INSTALLED_APPS = [ ... 'sample', ]
-
Include the sample URLconf in your project urls.py like this:
path('', include('sample.urls')),
-
Run
python manage.py migrate
to create the sample models (optional, models not added in the code yet). -
Start the development server and visit http://127.0.0.1:8000/ to get the sample JSON response
{"greeting": "Hello World"}
.
-
Notifications
You must be signed in to change notification settings - Fork 1
Sample Dajngo Package to demonstrate the reusability of a Django App
License
noopurphalak/sample-django-package
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Sample Dajngo Package to demonstrate the reusability of a Django App
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published