Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Apr 17, 2023. It is now read-only.

Commit 0d6d011

Browse files
Add files via upload
1 parent 0acedd8 commit 0d6d011

File tree

4 files changed

+166
-0
lines changed

4 files changed

+166
-0
lines changed

‎Proiect/proiect/asgi.py‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
"""
2+
ASGI config for proiect project.
3+
4+
It exposes the ASGI callable as a module-level variable named ``application``.
5+
6+
For more information on this file, see
7+
https://docs.djangoproject.com/en/4.0/howto/deployment/asgi/
8+
"""
9+
10+
import os
11+
12+
from django.core.asgi import get_asgi_application
13+
14+
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'proiect.settings')
15+
16+
application = get_asgi_application()

‎Proiect/proiect/settings.py‎

Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
"""
2+
Django settings for proiect project.
3+
4+
Generated by 'django-admin startproject' using Django 4.0.4.
5+
6+
For more information on this file, see
7+
https://docs.djangoproject.com/en/4.0/topics/settings/
8+
9+
For the full list of settings and their values, see
10+
https://docs.djangoproject.com/en/4.0/ref/settings/
11+
"""
12+
13+
from pathlib import Path
14+
15+
# Build paths inside the project like this: BASE_DIR / 'subdir'.
16+
BASE_DIR = Path(__file__).resolve().parent.parent
17+
18+
# Quick-start development settings - unsuitable for production
19+
# See https://docs.djangoproject.com/en/4.0/howto/deployment/checklist/
20+
21+
# SECURITY WARNING: keep the secret key used in production secret!
22+
SECRET_KEY = 'django-insecure-#zyd(1!q33#s9bmm3!a4$=@&vkyj(&ywi2@*$iut%yl*u@jnn-'
23+
24+
# SECURITY WARNING: don't run with debug turned on in production!
25+
DEBUG = True
26+
27+
ALLOWED_HOSTS = []
28+
29+
# Application definition
30+
31+
INSTALLED_APPS = [
32+
'django.contrib.admin',
33+
'django.contrib.auth',
34+
'django.contrib.contenttypes',
35+
'django.contrib.sessions',
36+
'django.contrib.messages',
37+
'django.contrib.staticfiles',
38+
'aplicatie1',
39+
'aplicatieJobs',
40+
41+
]
42+
43+
MIDDLEWARE = [
44+
'django.middleware.security.SecurityMiddleware',
45+
'django.contrib.sessions.middleware.SessionMiddleware',
46+
'django.middleware.common.CommonMiddleware',
47+
'django.middleware.csrf.CsrfViewMiddleware',
48+
'django.contrib.auth.middleware.AuthenticationMiddleware',
49+
'django.contrib.messages.middleware.MessageMiddleware',
50+
'django.middleware.clickjacking.XFrameOptionsMiddleware',
51+
]
52+
53+
ROOT_URLCONF = 'proiect.urls'
54+
55+
TEMPLATES = [
56+
{
57+
'BACKEND': 'django.template.backends.django.DjangoTemplates',
58+
'DIRS': ['templates/'],
59+
'APP_DIRS': True,
60+
'OPTIONS': {
61+
'context_processors': [
62+
'django.template.context_processors.debug',
63+
'django.template.context_processors.request',
64+
'django.contrib.auth.context_processors.auth',
65+
'django.contrib.messages.context_processors.messages',
66+
],
67+
},
68+
},
69+
]
70+
71+
WSGI_APPLICATION = 'proiect.wsgi.application'
72+
73+
# Database
74+
# https://docs.djangoproject.com/en/4.0/ref/settings/#databases
75+
76+
DATABASES = {
77+
'default': {
78+
'ENGINE': 'django.db.backends.sqlite3',
79+
'NAME': BASE_DIR / 'db.sqlite3',
80+
}
81+
}
82+
83+
# Password validation
84+
# https://docs.djangoproject.com/en/4.0/ref/settings/#auth-password-validators
85+
86+
AUTH_PASSWORD_VALIDATORS = [
87+
{
88+
'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
89+
},
90+
{
91+
'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
92+
},
93+
{
94+
'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
95+
},
96+
{
97+
'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
98+
},
99+
]
100+
101+
# Internationalization
102+
# https://docs.djangoproject.com/en/4.0/topics/i18n/
103+
104+
LANGUAGE_CODE = 'en-us'
105+
106+
TIME_ZONE = 'UTC'
107+
108+
USE_I18N = True
109+
110+
USE_TZ = True
111+
112+
# Static files (CSS, JavaScript, Images)
113+
# https://docs.djangoproject.com/en/4.0/howto/static-files/
114+
115+
STATIC_URL = '/static/'
116+
117+
# Default primary key field type
118+
# https://docs.djangoproject.com/en/4.0/ref/settings/#default-auto-field
119+
120+
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
121+
LOGIN_REDIRECT_URL = '/'
122+
LOGOUT_REDIRECT_URL = '/'

‎Proiect/proiect/urls.py‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
from django.contrib import admin
2+
from django.contrib.auth.views import LoginView
3+
from django.urls import path,include
4+
5+
urlpatterns = [
6+
path('admin/', admin.site.urls),
7+
path('', include('django.contrib.auth.urls'), {'next_page': '/'}, name='login'),
8+
path('', LoginView.as_view(template_name='registration/login.html'), name='login'),
9+
path('locations/', include('aplicatie1.urls')),
10+
path('jobs/', include('aplicatieJobs.urls')),
11+
12+
]

‎Proiect/proiect/wsgi.py‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
"""
2+
WSGI config for proiect project.
3+
4+
It exposes the WSGI callable as a module-level variable named ``application``.
5+
6+
For more information on this file, see
7+
https://docs.djangoproject.com/en/4.0/howto/deployment/wsgi/
8+
"""
9+
10+
import os
11+
12+
from django.core.wsgi import get_wsgi_application
13+
14+
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'proiect.settings')
15+
16+
application = get_wsgi_application()

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /