Skip to content

Commit 169f794

Browse files
Add new templates for developer profile, index page, contact us, and join us forms
- Created a new HTML template for Vaishvik Sharma's developer profile. - Added an index.html template for the main landing page of Jarvis Arena. - Implemented a contact us form template with Bootstrap styling. - Developed a join us form template with multi-step functionality for user information submission.
1 parent 91c296a commit 169f794

File tree

219 files changed

+17468
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

219 files changed

+17468
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"liveServer.settings.port": 5501
3+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Welcome to the world of Jarvis Arena

GamingPlatform_JarvisArena/jarvis/__init__.py

Whitespace-only changes.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
"""
2+
ASGI config for jarvis 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/5.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', 'jarvis.settings')
15+
16+
application = get_asgi_application()
Lines changed: 219 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,219 @@
1+
"""
2+
Django settings for jarvis project.
3+
4+
Generated by 'django-admin startproject' using Django 5.0.1.
5+
6+
For more information on this file, see
7+
https://docs.djangoproject.com/en/5.0/topics/settings/
8+
9+
For the full list of settings and their values, see
10+
https://docs.djangoproject.com/en/5.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+
19+
# Quick-start development settings - unsuitable for production
20+
# See https://docs.djangoproject.com/en/5.0/howto/deployment/checklist/
21+
22+
# SECURITY WARNING: keep the secret key used in production secret!
23+
SECRET_KEY = 'django-insecure-ql)(+xkzabkw*896vf#i9rjr0ga^&uiz1z)t@hk659!h4c(8d1'
24+
25+
# SECURITY WARNING: don't run with debug turned on in production!
26+
DEBUG = False
27+
28+
ALLOWED_HOSTS = ["*"]
29+
30+
SITE_ID = 3
31+
32+
# Application definition
33+
34+
INSTALLED_APPS = [
35+
'django.contrib.admin',
36+
'django.contrib.auth',
37+
'django.contrib.contenttypes',
38+
'django.contrib.sessions',
39+
'django.contrib.messages',
40+
'django.contrib.staticfiles',
41+
42+
#?---------------------- Custom apps ----------------------?#
43+
'jarvisapp',
44+
'allauth',
45+
'allauth.account',
46+
'django.contrib.sites',
47+
'allauth.socialaccount',
48+
'allauth.socialaccount.providers.google',
49+
'allauth.socialaccount.providers.github', # new for GitHub provider
50+
51+
52+
53+
54+
55+
]
56+
57+
58+
MIDDLEWARE = [
59+
'django.middleware.security.SecurityMiddleware',
60+
'django.contrib.sessions.middleware.SessionMiddleware',
61+
'django.middleware.common.CommonMiddleware',
62+
'allauth.account.middleware.AccountMiddleware',
63+
'django.middleware.csrf.CsrfViewMiddleware',
64+
'django.contrib.auth.middleware.AuthenticationMiddleware',
65+
'django.contrib.messages.middleware.MessageMiddleware',
66+
'django.middleware.clickjacking.XFrameOptionsMiddleware',
67+
]
68+
69+
AUTHENTICATION_BACKENDS = (
70+
'django.contrib.auth.backends.ModelBackend',
71+
'allauth.account.auth_backends.AuthenticationBackend',
72+
)
73+
74+
SOCIALACCOUNT_PROVIDERS = {
75+
"google": {
76+
"SCOPE": ["profile", "email"],
77+
"AUTH_PARAMS": {
78+
"access_type": "online",
79+
},
80+
'APP': {
81+
'client_id': '575891602131-0sl38h388svbvjehmom26fno2kk5bn1n.apps.googleusercontent.com',
82+
'secret': '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',
83+
'key': ''
84+
}
85+
},
86+
'github': {
87+
'SCOPE': ['user'],
88+
'AUTH_PARAMS': {
89+
'scope': 'user:email',
90+
},
91+
'APP': {
92+
'client_id': '2489d6ef85b22cf62f52',
93+
'secret': 'f569cc7acdffe295964341fea7b6e13e922980e4',
94+
'key': ''
95+
}
96+
}
97+
}
98+
99+
100+
101+
102+
103+
LOGIN_REDIRECT_URL = "/"
104+
# LOGIN_REDIRECT_URL = "/"
105+
106+
ACCOUNT_EMAIL_VERIFICATION = "none" # new
107+
108+
109+
# SOCIALACCOUNT_PROVIDERS = {
110+
# 'github': {
111+
# 'SCOPE': ['user'],
112+
# 'AUTH_PARAMS': {
113+
# 'scope': 'user:email',
114+
# },
115+
# 'APP': {
116+
# 'client_id': '2489d6ef85b22cf62f52',
117+
# 'secret': 'f569cc7acdffe295964341fea7b6e13e922980e4',
118+
# 'key': ''
119+
# }
120+
# }
121+
# }
122+
123+
124+
import os
125+
ROOT_URLCONF = 'jarvis.urls'
126+
127+
TEMPLATES = [
128+
{
129+
'BACKEND': 'django.template.backends.django.DjangoTemplates',
130+
'DIRS': [os.path.join(BASE_DIR, 'templates')],
131+
'APP_DIRS': True,
132+
'OPTIONS': {
133+
'context_processors': [
134+
'django.template.context_processors.debug',
135+
'django.template.context_processors.request',
136+
'django.contrib.auth.context_processors.auth',
137+
'django.contrib.messages.context_processors.messages',
138+
],
139+
},
140+
},
141+
]
142+
143+
WSGI_APPLICATION = 'jarvis.wsgi.application'
144+
145+
146+
# Database
147+
# https://docs.djangoproject.com/en/5.0/ref/settings/#databases
148+
149+
DATABASES = {
150+
'default': {
151+
'ENGINE': 'django.db.backends.sqlite3',
152+
'NAME': BASE_DIR / 'db.sqlite3',
153+
}
154+
}
155+
156+
157+
# Password validation
158+
# https://docs.djangoproject.com/en/5.0/ref/settings/#auth-password-validators
159+
160+
AUTH_PASSWORD_VALIDATORS = [
161+
{
162+
'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
163+
},
164+
{
165+
'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
166+
},
167+
{
168+
'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
169+
},
170+
{
171+
'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
172+
},
173+
]
174+
175+
176+
# Internationalization
177+
# https://docs.djangoproject.com/en/5.0/topics/i18n/
178+
179+
LANGUAGE_CODE = 'en-us'
180+
181+
TIME_ZONE = 'UTC'
182+
183+
USE_I18N = True
184+
185+
USE_TZ = True
186+
187+
188+
# Static files (CSS, JavaScript, Images)
189+
# https://docs.djangoproject.com/en/5.0/howto/static-files/
190+
191+
STATIC_URL = 'static/'
192+
193+
# Default primary key field type
194+
# https://docs.djangoproject.com/en/5.0/ref/settings/#default-auto-field
195+
196+
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
197+
198+
199+
#?-------------------------------------- Adiitional settings --------------------------------------?#
200+
201+
#! --------------------- Static files directory -----------------------------------#
202+
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
203+
204+
STATICFILES_DIRS = [
205+
os.path.join(BASE_DIR, 'static'),
206+
os.path.join(BASE_DIR, 'download_games')
207+
]
208+
209+
210+
211+
#! --------------------- Sending email -----------------------------------#
212+
213+
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
214+
EMAIL_HOST = 'smtp.gmail.com'
215+
EMAIL_PORT = 587
216+
EMAIL_USE_TLS = True
217+
EMAIL_HOST_USER = '[email protected]' # Your Gmail username
218+
EMAIL_HOST_PASSWORD = 'mbpbbobleiasfdft' # Your Gmail password or app password
219+
EMAIL_USE_SSL = False
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
"""
2+
URL configuration for jarvis project.
3+
4+
The `urlpatterns` list routes URLs to views. For more information please see:
5+
https://docs.djangoproject.com/en/5.0/topics/http/urls/
6+
Examples:
7+
Function views
8+
1. Add an import: from my_app import views
9+
2. Add a URL to urlpatterns: path('', views.home, name='home')
10+
Class-based views
11+
1. Add an import: from other_app.views import Home
12+
2. Add a URL to urlpatterns: path('', Home.as_view(), name='home')
13+
Including another URLconf
14+
1. Import the include() function: from django.urls import include, path
15+
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
16+
"""
17+
from django.contrib import admin
18+
from django.urls import path, include
19+
20+
urlpatterns = [
21+
path('admin/', admin.site.urls),
22+
path('', include('jarvisapp.urls')),
23+
path('accounts/', include('allauth.urls')), # Include allauth URLs
24+
25+
]
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
"""
2+
WSGI config for jarvis 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/5.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', 'jarvis.settings')
15+
16+
application = get_wsgi_application()

GamingPlatform_JarvisArena/jarvisapp/__init__.py

Whitespace-only changes.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
from django.contrib import admin
2+
3+
from .models import Profile
4+
5+
6+
# Register your models here.
7+
8+
9+
admin.site.register(Profile)
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
from django.apps import AppConfig
2+
3+
4+
class JarvisappConfig(AppConfig):
5+
default_auto_field = 'django.db.models.BigAutoField'
6+
name = 'jarvisapp'

0 commit comments

Comments
 (0)