├── config ├── users │ ├── forms.py │ ├── __init__.py │ ├── migrations │ │ └── __init__.py │ ├── models.py │ ├── tests.py │ ├── admin.py │ ├── apps.py │ ├── urls.py │ ├── templates │ │ └── users │ │ │ ├── signup.html │ │ │ └── login.html │ └── views.py ├── config │ ├── __init__.py │ ├── asgi.py │ ├── wsgi.py │ ├── urls.py │ └── settings.py ├── photoapp │ ├── __init__.py │ ├── migrations │ │ ├── __init__.py │ │ └── 0001_initial.py │ ├── forms.py │ ├── tests.py │ ├── admin.py │ ├── apps.py │ ├── templates │ │ └── photoapp │ │ │ ├── taglist.html │ │ │ ├── list.html │ │ │ ├── create.html │ │ │ ├── update.html │ │ │ ├── delete.html │ │ │ └── detail.html │ ├── models.py │ ├── urls.py │ └── views.py ├── manage.py └── templates │ ├── navbar.html │ └── base.html ├── requirements.txt ├── README.md └── .gitignore /config/users/forms.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /config/config/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /config/photoapp/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /config/users/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /config/photoapp/migrations/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /config/users/migrations/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /config/photoapp/forms.py: -------------------------------------------------------------------------------- 1 | '''Photo app Forms''' 2 | -------------------------------------------------------------------------------- /config/users/models.py: -------------------------------------------------------------------------------- 1 | from django.db import models 2 | 3 | # Create your models here. 4 | -------------------------------------------------------------------------------- /config/users/tests.py: -------------------------------------------------------------------------------- 1 | from django.test import TestCase 2 | 3 | # Create your tests here. 4 | -------------------------------------------------------------------------------- /config/photoapp/tests.py: -------------------------------------------------------------------------------- 1 | from django.test import TestCase 2 | 3 | # Create your tests here. 4 | -------------------------------------------------------------------------------- /config/users/admin.py: -------------------------------------------------------------------------------- 1 | from django.contrib import admin 2 | 3 | # Register your models here. 4 | -------------------------------------------------------------------------------- /config/photoapp/admin.py: -------------------------------------------------------------------------------- 1 | from django.contrib import admin 2 | from .models import Photo 3 | 4 | # Register your models here. 5 | admin.site.register(Photo) -------------------------------------------------------------------------------- /config/users/apps.py: -------------------------------------------------------------------------------- 1 | from django.apps import AppConfig 2 | 3 | 4 | class UsersConfig(AppConfig): 5 | default_auto_field = 'django.db.models.BigAutoField' 6 | name = 'users' 7 | -------------------------------------------------------------------------------- /config/photoapp/apps.py: -------------------------------------------------------------------------------- 1 | from django.apps import AppConfig 2 | 3 | 4 | class PhotoappConfig(AppConfig): 5 | default_auto_field = 'django.db.models.BigAutoField' 6 | name = 'photoapp' 7 | -------------------------------------------------------------------------------- /config/photoapp/templates/photoapp/taglist.html: -------------------------------------------------------------------------------- 1 | {% extends 'photoapp/list.html' %} 2 | 3 | {% block body %} 4 | 5 |
15 | Already Registered? 16 | Login 17 |
18 |17 | Don't have an account? 18 | Create account 19 |
20 |Are you sure, you want to delete the photo ?
12 |Uploaded on: {{photo.created}}
By {{photo.submitter.username}}
{{ photo.description }}
26 |