Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat : website in progress #122

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 17 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,49 +46,49 @@ Welcome to PythonProjects, a repository filled with exciting and educational Pyt
### :rock: Rock Paper Scissors
Challenge the computer to a classic game of rock-paper-scissors and test your luck. Simple yet entertaining for a quick gaming break.

### Hangman
### 💀Hangman
Guess the word before the stick figure is fully drawn! A perfect project for practicing loops and conditionals.

### Caesar Cipher
### 🔐Caesar Cipher
Explore the world of cryptography by encrypting and decrypting messages using the famous Caesar Cipher. A beginner-friendly introduction to the fascinating field of code-breaking.

### Blackjack
Experience the thrill of the casino with a simple text-based Blackjack game. Perfect for learning about game logic and conditional statements.

### Password Generator
### 🛡️Password Generator
Ensure your online security with a custom password generator. Create strong and secure passwords effortlessly.

### Guess the Number
### 🤔Guess the Number
Challenge the computer to pick the correct number within a limited range. Test your guessing skills with this number-guessing game.

### Vigenere Cipher
### 🔐Vigenere Cipher
Delve deeper into cryptography by encrypting and decrypting messages using the Vigenere Cipher. A great project for cryptography enthusiasts.

### Modified Vigenere Cipher
### 🔐Modified Vigenere Cipher
Take on the challenge of encrypting messages using a modified Vigenere Cipher. A fun project for those who love puzzles and cryptography.

### Tic Tac Toe
### 🔴Tic Tac Toe
Enjoy a classic game of Tic Tac Toe with friends. A simple and lightweight game suitable for any machine.

### Typing Speed and Accuracy Test
### ⌨️Typing Speed and Accuracy Test
Sharpen your typing skills with a speed and accuracy test. Practice file handling and string manipulation while improving your typing proficiency.

### Memory Tiles
### 💿Memory Tiles
Test your photographic memory with this nostalgic game of matching pairs of tiles. Learn tkinter for GUI and game logic in Python.

### Screen Recorder
### 🎥Screen Recorder
This is a simple Python script that can record your screen to a video file.

### Timed Math Challenge
### 📝Timed Math Challenge
This simple Python script is an arithmetic quiz game that generates random arithmetic problems for the user to solve.

### Mad Libs
This Python script generates amusing and random stories using the Mad Libs format.

### Image to Pencil Sketch Generator
### 🖋Image to Pencil Sketch Generator
This program allows you to convert any image into a pencil sketch. A simple program which uses OpenCV.

### Car Game
### 🎮Car Game
A simple python game that gets you ready for a safe drive on road by avoiding collisions.

### CLI-Weather App
Expand All @@ -100,7 +100,7 @@ This is a simple program which utilizes the MediaWiki API to retrieve informatio

## Intermediate Level Projects

### Snake Game
### 🐍Snake Game
Take a trip back to the retro gaming era with a classic Snake Game. Dive into event-driven programming and user input handling.

### Pong Game
Expand Down Expand Up @@ -130,18 +130,18 @@ Detect drowsiness by analyzing eyes and receive alerts. Enhance your understandi
### Mastemind Game
A fun game to test your guessing powers. Guess the 4 digits number in less guesses as possible. Digits will be revealed as soon as you guessed it correctly.

### Sudoku
### 🔢Sudoku
Embark yourself in a Sudoku quest. Perfect for learning object-oriented programming, GUI with pygame, backtracking and conditional statements.

### Space Invaders
A fun game of spaceships and spacewars!! Eliminate the enemies or you die ;) This is a perfect project for learning pygame module and game logic.


## Stats
## 🔥 Stats 🔥

[![trophy](https://github-profile-trophy.vercel.app/?username=shrey141102)](https://github.com/shrey141102/PythonProjects/github-profile-trophy)

## Contributing
## Contributing

We invite and encourage contributions from the community! Whether you want to add a new project, improve existing code, or fix a bug, your contributions are invaluable.

Expand Down
Binary file added Reposite/hello/db.sqlite3
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
16 changes: 16 additions & 0 deletions Reposite/hello/hello/asgi.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
"""
ASGI config for hello project.

It exposes the ASGI callable as a module-level variable named ``application``.

For more information on this file, see
https://docs.djangoproject.com/en/4.2/howto/deployment/asgi/
"""

import os

from django.core.asgi import get_asgi_application

os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'hello.settings')

application = get_asgi_application()
128 changes: 128 additions & 0 deletions Reposite/hello/hello/settings.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
"""
Django settings for hello project.

Generated by 'django-admin startproject' using Django 4.2.6.

For more information on this file, see
https://docs.djangoproject.com/en/4.2/topics/settings/

For the full list of settings and their values, see
https://docs.djangoproject.com/en/4.2/ref/settings/
"""

from pathlib import Path

# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent


# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/4.2/howto/deployment/checklist/

# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'django-insecure-)($l#=banxw$5rue@2e*rg1wn9ign-&8(v9gz)r8_&fl99*ab&'

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True

ALLOWED_HOSTS = []


# Application definition

INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
]

MIDDLEWARE = [
'django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
]

ROOT_URLCONF = 'hello.urls'

TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [BASE_DIR / "template"],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
],
},
},
]

WSGI_APPLICATION = 'hello.wsgi.application'


# Database
# https://docs.djangoproject.com/en/4.2/ref/settings/#databases

DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': BASE_DIR / 'db.sqlite3',
}
}


# Password validation
# https://docs.djangoproject.com/en/4.2/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/4.2/topics/i18n/

LANGUAGE_CODE = 'en-us'

TIME_ZONE = 'UTC'

USE_I18N = True

USE_TZ = True


# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/4.2/howto/static-files/

STATIC_URL = 'static/'

## added manually
STATICFILES_DIRS = [
BASE_DIR / "static",
]

# Default primary key field type
# https://docs.djangoproject.com/en/4.2/ref/settings/#default-auto-field

DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
27 changes: 27 additions & 0 deletions Reposite/hello/hello/urls.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
"""
URL configuration for hello project.

The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/4.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based views
1. Add an import: from other_app.views import Home
2. Add a URL to urlpatterns: path('', Home.as_view(), name='home')
Including another URLconf
1. Import the include() function: from django.urls import include, path
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path, include

admin.site.site_header = "ShubhaIcecream Admin"
admin.site.site_title = "ShubhaIcecream Admin Portal"
admin.site.index_title = "Welcome to ShubhaIcecream Portal"

urlpatterns = [
path('admin/', admin.site.urls),
path('',include('home.urls'))
]
16 changes: 16 additions & 0 deletions Reposite/hello/hello/wsgi.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
"""
WSGI config for hello project.

It exposes the WSGI callable as a module-level variable named ``application``.

For more information on this file, see
https://docs.djangoproject.com/en/4.2/howto/deployment/wsgi/
"""

import os

from django.core.wsgi import get_wsgi_application

os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'hello.settings')

application = get_wsgi_application()
Empty file added Reposite/hello/home/__init__.py
Empty file.
Binary file not shown.
Binary file added Reposite/hello/home/__pycache__/urls.cpython-310.pyc
Binary file not shown.
Binary file not shown.
3 changes: 3 additions & 0 deletions Reposite/hello/home/admin.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from django.contrib import admin

# Register your models here.
6 changes: 6 additions & 0 deletions Reposite/hello/home/apps.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from django.apps import AppConfig


class HomeConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'home'
Empty file.
3 changes: 3 additions & 0 deletions Reposite/hello/home/models.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from django.db import models

# Create your models here.
3 changes: 3 additions & 0 deletions Reposite/hello/home/tests.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from django.test import TestCase

# Create your tests here.
11 changes: 11 additions & 0 deletions Reposite/hello/home/urls.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
from django.contrib import admin
from django.urls import path
from home import views

urlpatterns = [
path("", views.index, name='home'),
path("about", views.about, name='about'),
path("services", views.services, name='services'),
path("contacts", views.contacts, name='contacts'),
]

21 changes: 21 additions & 0 deletions Reposite/hello/home/views.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
from django.shortcuts import render, HttpResponse

# Create your views here.
def index(request):
#return HttpResponse('this is homepage')
context={
"variable":"Shubha is great"
}
return render(request,'index.html',context)

def about(request):
return render(request,'about.html')
#return HttpResponse('this is about page')

def services(request):
return render(request,'services.html')
#return HttpResponse('this is services page')

def contacts(request):
return render(request,'contacts.html')
#return HttpResponse('this is contact page')
22 changes: 22 additions & 0 deletions Reposite/hello/manage.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys


def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'hello.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. Are you sure it's installed and "
"available on your PYTHONPATH environment variable? Did you "
"forget to activate a virtual environment?"
) from exc
execute_from_command_line(sys.argv)


if __name__ == '__main__':
main()
Binary file added Reposite/hello/static/1
Binary file not shown.
Binary file added Reposite/hello/static/1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Reposite/hello/static/2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Reposite/hello/static/3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Reposite/hello/static/4.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Reposite/hello/static/4.webp
Binary file not shown.
1 change: 1 addition & 0 deletions Reposite/hello/static/this.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
this is a text in static page.
5 changes: 5 additions & 0 deletions Reposite/hello/template/about.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{% extends "base.html" %}
{% block title %}About{% endblock title %}
{% block body %}

{% endblock body %}
Loading