Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ryanfleck/infralink
Location-based crowdsourced infrastructure info and news.
https://github.com/ryanfleck/infralink
Last synced: 18 days ago
JSON representation
Location-based crowdsourced infrastructure info and news.
- Host: GitHub
- URL: https://github.com/ryanfleck/infralink
- Owner: RyanFleck
- License: mit
- Created: 2020-02-07T23:43:50.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-09-22T18:32:45.000Z (about 3 years ago)
- Last Synced: 2024-04-14T07:56:34.718Z (7 months ago)
- Language: Python
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/RyanFleck/Django-Deployable-Template/tree/master)
# Django-Deployable-Template
Django app with users and database, deployable on Heroku.To run:
```sh
cd base
python3 manage.py runserver
```To start a new app:
```
python3 manage.py startapp appname
```Then add these to your new app:
urls.py
```py
from django.urls import path
from . import viewsurlpatterns = [
path('', views.index, name='index'),
]
```views.py
```py
from django.shortcuts import render
from django.http import HttpResponsedef index(request):
return HttpResponse("New web app.")
```Add to base/urls.py
```py
urlpatterns = [
path('', include('webapp.urls')),
path('admin/', admin.site.urls),
]
```