Add part 2, admin user and automatic forms

parent b6c0fa2b
A simple web application in Python, using Django
================================================
Part 1
------
Install the virtual environment:
virtualenv --no-site-packages venv
......@@ -69,3 +72,12 @@ Show in the interactive shell:
>>> u.url_set.count()
1
Part 2
------
Create admin user:
python manage.py createsuperuser
Edit `urlapp/admin.py` to allow modifications to the app.
from django.contrib import admin
# Register your models here.
from .models import User, Url
admin.site.register(User)
admin.site.register(Url)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment