Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ashgole/django-hello-world
get rid of from doing same repetative task
https://github.com/ashgole/django-hello-world
django hello-world
Last synced: about 2 months ago
JSON representation
get rid of from doing same repetative task
- Host: GitHub
- URL: https://github.com/ashgole/django-hello-world
- Owner: ashgole
- Created: 2021-10-04T03:38:06.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-10-07T16:23:45.000Z (over 3 years ago)
- Last Synced: 2024-05-02T05:17:15.074Z (9 months ago)
- Topics: django, hello-world
- Language: Python
- Homepage: https://github.com/ashgole/Django-Hello-world
- Size: 16.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
📱
# django hello world
# Tags
`Django` `Django Hello world` `my first applicaiton`## Help
***
```
python -m virtualenv myenv
myenv\scripts\activate.bat
pip install -r requiremets.txt
```
***
```
django-admin startproject [project-name] .
python manage.py startapp [app-name]
```
***
```
project > settings.py >INSTALLED_APPS = [
.
.
.
[app-name]
]
```
***
```
project > urls.py >from django.contrib import admin
from django.urls import path,includeurlpatterns = [
path('admin/', admin.site.urls),
path('', include('home.urls')),
]
```
***
```
app > urls.py >from django.urls import path
from home import viewsurlpatterns = [
path('', views.index),
]
```
***
```
app > views.pyfrom django.http.response import HttpResponse
def index(request):
return HttpResponse('Hello world')
```
***
```
python manage.py makemigrations home
python manage.py migrate
python manage.py runserver
```