Linux websever 5.15.0-153-generic #163-Ubuntu SMP Thu Aug 7 16:37:18 UTC 2025 x86_64
Apache/2.4.52 (Ubuntu)
: 192.168.3.70 | : 192.168.1.99
Cant Read [ /etc/named.conf ]
8.1.2-1ubuntu2.23
urlab
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
var /
www /
html /
vicas-dev /
publications /
[ HOME SHELL ]
Name
Size
Permission
Action
__pycache__
[ DIR ]
drwxr-xr-x
migrations
[ DIR ]
drwxr-xr-x
templates
[ DIR ]
drwxr-xr-x
__init__.py
0
B
-rw-r--r--
admin.py
285
B
-rw-r--r--
apps.py
99
B
-rw-r--r--
forms.py
787
B
-rw-r--r--
models.py
630
B
-rw-r--r--
tests.py
60
B
-rw-r--r--
urls.py
195
B
-rw-r--r--
utils.py
316
B
-rw-r--r--
views.py
1.15
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : views.py
from django.shortcuts import render, redirect from .models import Publication from .forms import PublicationForm from .utils import login_required # Import the custom decorator def publication_list(request): publications = Publication.objects.all().order_by('-year') category = request.GET.get('category') author = request.GET.get('author') year = request.GET.get('year') topic = request.GET.get('topic') if category: publications = publications.filter(category=category) if author: publications = publications.filter(authors__icontains=author) if year: publications = publications.filter(year=year) if topic: publications = publications.filter(topic__icontains=topic) return render(request, "publications/publications.html", {"publications": publications}) @login_required def add_publication(request): if request.method == "POST": form = PublicationForm(request.POST) if form.is_valid(): form.save() return redirect('publication_list') else: form = PublicationForm() return render(request, "publications/add_publication.html", {"form": form})
Close