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 /
students /
[ HOME SHELL ]
Name
Size
Permission
Action
__pycache__
[ DIR ]
drwxr-xr-x
migrations
[ DIR ]
drwxr-xr-x
static
[ DIR ]
drwxr-xr-x
templates
[ DIR ]
drwxr-xr-x
__init__.py
0
B
-rw-r--r--
admin.py
257
B
-rw-r--r--
apps.py
91
B
-rw-r--r--
forms.py
193
B
-rw-r--r--
models.py
1.76
KB
-rw-r--r--
tests.py
60
B
-rw-r--r--
urls.py
220
B
-rw-r--r--
views.py
899
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : models.py
from django.db import models from django.utils.text import slugify class Student(models.Model): name = models.CharField(max_length=200) # start = models.DateTimeField() slug = models.SlugField(unique=True, blank=True, null=True) email = models.EmailField(unique=True) # phone = models.CharField(max_length=10, unique=True) phone = models.CharField(max_length=10, unique=True, null=True, blank=True) COURSE_CHOICES = [ ('B.Tech', 'B.Tech'), ('M.Tech', 'M.Tech'), ('Ph.D', 'Ph.D'), ] course = models.CharField(max_length=6, choices=COURSE_CHOICES, default='B.Tech') branch = models.CharField(max_length=100, null=True, blank=True) start = models.DateField(null=True) end = models.DateField(null=True) content = models.TextField(max_length=400) created_at = models.DateTimeField(auto_now_add=True, null=True) updated_at = models.DateTimeField(auto_now=True, null=True) profile_photo = models.ImageField(upload_to='students_photos/', blank=True, null=True) awards = models.TextField(blank=True, null=True) research = models.TextField(blank=True, null=True) publications = models.TextField(blank=True, null=True) other_info = models.TextField(blank=True, null=True) def save(self, *args, **kwargs): if not self.slug: base_slug = slugify(self.name) unique_slug = base_slug counter = 1 while Student.objects.filter(slug=unique_slug).exists(): unique_slug = f"{base_slug}-{counter}" counter += 1 self.slug = unique_slug super().save(*args, **kwargs) def __str__(self): return self.name #############################################################
Close