├── .gitignore
├── .idea
├── .gitignore
├── Python_Hunt.iml
├── inspectionProfiles
│ ├── Project_Default.xml
│ └── profiles_settings.xml
├── misc.xml
├── modules.xml
└── vcs.xml
├── CONTRIBUTING.md
├── HacktoberFest2023_Resources
├── .DS_Store
├── 05_logo_set
│ ├── .DS_Store
│ ├── hf10_horizontal_logos
│ │ ├── .DS_Store
│ │ ├── cmyk
│ │ │ ├── .DS_Store
│ │ │ ├── hf10_horz_fcd_cmyk.png
│ │ │ ├── hf10_horz_fcl_cmyk.png
│ │ │ ├── hf10_horz_scd_cmyk.png
│ │ │ └── hf10_horz_scl_cmyk.png
│ │ └── rgb
│ │ │ ├── .DS_Store
│ │ │ ├── hf10_horz_fcd_rgb.png
│ │ │ ├── hf10_horz_fcl_rgb.png
│ │ │ ├── hf10_horz_scd_rgb.png
│ │ │ └── hf10_horz_scl_rgb.png
│ ├── hf10_logomark_icon
│ │ ├── .DS_Store
│ │ ├── cmyk
│ │ │ ├── .DS_Store
│ │ │ ├── hf10_icon_fcd_cmyk.png
│ │ │ ├── hf10_icon_fcl_cmyk.png
│ │ │ ├── hf10_icon_scd_cmyk.png
│ │ │ └── hf10_icon_scl_cmyk.png
│ │ └── rgb
│ │ │ ├── .DS_Store
│ │ │ ├── hf10_icon_fcd_rgb.png
│ │ │ ├── hf10_icon_fcl_rgb.png
│ │ │ ├── hf10_icon_scd_rgb.png
│ │ │ └── hf10_icon_scl_rgb.png
│ └── hf10_vertical_logos
│ │ ├── .DS_Store
│ │ ├── cmyk
│ │ ├── .DS_Store
│ │ ├── hf10_vert_fcd_cmyk.png
│ │ ├── hf10_vert_fcl_cmyk.png
│ │ ├── hf10_vert_scd_cmyk.png
│ │ └── hf10_vert_scl_cmyk.png
│ │ └── rgb
│ │ ├── .DS_Store
│ │ ├── hf10_vert_fcd_rgb.png
│ │ ├── hf10_vert_fcl_rgb.png
│ │ ├── hf10_vert_scd_rgb.png
│ │ └── hf10_vert_scl_rgb.png
├── 06_banners
│ ├── .DS_Store
│ ├── hf10_banner
│ │ ├── .DS_Store
│ │ ├── hf10_banner_1032x600.png
│ │ └── hf10_banner_sponsors_1032x600.png
│ ├── hf10_email_assets
│ │ ├── .DS_Store
│ │ ├── hf10_email_header_600x360px.jpg
│ │ └── hf10_email_header_600x360px.png
│ └── hf10_logo_wall
│ │ ├── .DS_Store
│ │ ├── hf10_logo_wall_1920x1080.jpg
│ │ └── hf10_logo_wall_1920x1080.png
└── GitHub_Cheat_Sheet.pdf
├── README.md
└── producthunt_pro
├── accounts
├── __init__.py
├── admin.py
├── apps.py
├── migrations
│ └── __init__.py
├── models.py
├── templates
│ └── accounts
│ │ ├── login.html
│ │ └── signup.html
├── tests.py
├── urls.py
└── views.py
├── build_files.sh
├── code_editor
├── __init__.py
├── admin.py
├── apps.py
├── migrations
│ └── __init__.py
├── models.py
├── static
│ └── code_editor
│ │ └── script.js
├── templates
│ └── code_editor
│ │ └── editor.html
├── tests.py
├── urls.py
└── views.py
├── db.sqlite3
├── manage.py
├── package-lock.json
├── producthunt
├── __init__.py
├── asgi.py
├── settings.py
├── static
│ ├── Django_Logo.png
│ ├── Django_Logo2.png
│ ├── IntegrateHTML_CSS.png
│ ├── Plogo.png
│ ├── Python_Keywords
│ │ ├── Keywords.css
│ │ ├── Loops.css
│ │ ├── doc.css
│ │ ├── string.css
│ │ └── style.css
│ ├── coverpython.png
│ ├── dictionary.png
│ ├── function.jpg
│ ├── keywords.jpg
│ ├── plogo1.png
│ ├── py3version.png
│ ├── pylogo.jpg
│ ├── python-flow-control-statements.webp
│ ├── sets.png
│ ├── step1.jpg
│ ├── step2.jpg
│ ├── step3.jpg
│ ├── step4.jpg
│ ├── tuple.png
│ ├── variables.jpg
│ └── variables_main.jpg
├── templates
│ └── base.html
├── urls.py
└── wsgi.py
├── products
├── __init__.py
├── admin.py
├── apps.py
├── migrations
│ └── __init__.py
├── models.py
├── templates
│ └── products
│ │ ├── Keywords.html
│ │ ├── PythonLoops.html
│ │ ├── Python_Intro.html
│ │ ├── comments.html
│ │ ├── dictionaries.html
│ │ ├── errors_exceptions_debugging.html
│ │ ├── file.html
│ │ ├── functions.html
│ │ ├── home.html
│ │ ├── index.html
│ │ ├── installation.html
│ │ ├── lists.html
│ │ ├── polymorphism.html
│ │ ├── python_data_types.html
│ │ ├── sets.html
│ │ ├── statements.html
│ │ ├── string.html
│ │ ├── tuples.html
│ │ └── variables.html
├── tests.py
├── urls.py
└── views.py
├── requirements.txt
├── static
└── admin
│ ├── css
│ ├── autocomplete.css
│ ├── base.css
│ ├── changelists.css
│ ├── dashboard.css
│ ├── fonts.css
│ ├── forms.css
│ ├── login.css
│ ├── nav_sidebar.css
│ ├── responsive.css
│ ├── responsive_rtl.css
│ ├── rtl.css
│ ├── vendor
│ │ └── select2
│ │ │ ├── LICENSE-SELECT2.md
│ │ │ ├── select2.css
│ │ │ └── select2.min.css
│ └── widgets.css
│ ├── fonts
│ ├── LICENSE.txt
│ ├── README.txt
│ ├── Roboto-Bold-webfont.woff
│ ├── Roboto-Light-webfont.woff
│ └── Roboto-Regular-webfont.woff
│ ├── img
│ ├── LICENSE
│ ├── README.txt
│ ├── calendar-icons.svg
│ ├── gis
│ │ ├── move_vertex_off.svg
│ │ └── move_vertex_on.svg
│ ├── icon-addlink.svg
│ ├── icon-alert.svg
│ ├── icon-calendar.svg
│ ├── icon-changelink.svg
│ ├── icon-clock.svg
│ ├── icon-deletelink.svg
│ ├── icon-no.svg
│ ├── icon-unknown-alt.svg
│ ├── icon-unknown.svg
│ ├── icon-viewlink.svg
│ ├── icon-yes.svg
│ ├── inline-delete.svg
│ ├── search.svg
│ ├── selector-icons.svg
│ ├── sorting-icons.svg
│ ├── tooltag-add.svg
│ └── tooltag-arrowright.svg
│ └── js
│ ├── SelectBox.js
│ ├── SelectFilter2.js
│ ├── actions.js
│ ├── admin
│ ├── DateTimeShortcuts.js
│ └── RelatedObjectLookups.js
│ ├── autocomplete.js
│ ├── calendar.js
│ ├── cancel.js
│ ├── change_form.js
│ ├── collapse.js
│ ├── core.js
│ ├── inlines.js
│ ├── jquery.init.js
│ ├── nav_sidebar.js
│ ├── popup_response.js
│ ├── prepopulate.js
│ ├── prepopulate_init.js
│ ├── urlify.js
│ └── vendor
│ ├── jquery
│ ├── LICENSE.txt
│ ├── jquery.js
│ └── jquery.min.js
│ ├── select2
│ ├── LICENSE.md
│ ├── i18n
│ │ ├── af.js
│ │ ├── ar.js
│ │ ├── az.js
│ │ ├── bg.js
│ │ ├── bn.js
│ │ ├── bs.js
│ │ ├── ca.js
│ │ ├── cs.js
│ │ ├── da.js
│ │ ├── de.js
│ │ ├── dsb.js
│ │ ├── el.js
│ │ ├── en.js
│ │ ├── es.js
│ │ ├── et.js
│ │ ├── eu.js
│ │ ├── fa.js
│ │ ├── fi.js
│ │ ├── fr.js
│ │ ├── gl.js
│ │ ├── he.js
│ │ ├── hi.js
│ │ ├── hr.js
│ │ ├── hsb.js
│ │ ├── hu.js
│ │ ├── hy.js
│ │ ├── id.js
│ │ ├── is.js
│ │ ├── it.js
│ │ ├── ja.js
│ │ ├── ka.js
│ │ ├── km.js
│ │ ├── ko.js
│ │ ├── lt.js
│ │ ├── lv.js
│ │ ├── mk.js
│ │ ├── ms.js
│ │ ├── nb.js
│ │ ├── ne.js
│ │ ├── nl.js
│ │ ├── pl.js
│ │ ├── ps.js
│ │ ├── pt-BR.js
│ │ ├── pt.js
│ │ ├── ro.js
│ │ ├── ru.js
│ │ ├── sk.js
│ │ ├── sl.js
│ │ ├── sq.js
│ │ ├── sr-Cyrl.js
│ │ ├── sr.js
│ │ ├── sv.js
│ │ ├── th.js
│ │ ├── tk.js
│ │ ├── tr.js
│ │ ├── uk.js
│ │ ├── vi.js
│ │ ├── zh-CN.js
│ │ └── zh-TW.js
│ ├── select2.full.js
│ └── select2.full.min.js
│ └── xregexp
│ ├── LICENSE.txt
│ ├── xregexp.js
│ └── xregexp.min.js
└── vercel.json
/.gitignore:
--------------------------------------------------------------------------------
1 | ### Django ###
2 | *.log
3 | *.pot
4 | *.pyc
5 | __pycache__/
6 | local_settings.py
7 | db.sqlite3-journal
8 | /media
9 | /static
10 | staticfiles_build
11 |
12 | # Environments
13 | .env
14 | .venv
15 | env/
16 | venv/
17 | ENV/
18 | env.bak/
19 | venv.bak/
20 | myenv
--------------------------------------------------------------------------------
/.idea/.gitignore:
--------------------------------------------------------------------------------
1 | # Default ignored files
2 | /shelf/
3 | /workspace.xml
4 | # Editor-based HTTP Client requests
5 | /httpRequests/
6 | # Datasource local storage ignored files
7 | /dataSources/
8 | /dataSources.local.xml
9 |
--------------------------------------------------------------------------------
/.idea/Python_Hunt.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/.idea/inspectionProfiles/Project_Default.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/.idea/inspectionProfiles/profiles_settings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/.idea/vcs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/CONTRIBUTING.md:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
Python Hunt Hacktoberfest 2023 Contribution Guidelines 💙
6 | Hello open-source enthusiasts! Welcome to Python Hunt, a platform dedicated to making learning Python even more accessible. This Django project provides a space for contributors to create web pages explaining various Python concepts, as outlined in the existing issues. To maintain a consistent design, please ensure that your templates follow the established style guide. Refer to the documentation below for instructions on running the website on your local system.
7 | Don't forget to show your support by leaving a ⭐ if you find this repository helpful!
8 | Prerequisites
9 | Before you proceed with the installation, make sure you have the following prerequisites installed on your system:
10 |
11 | Python (version 3.6 or higher)
12 | pip (Python package installer)
13 |
14 | Installation Steps
15 | Create a Virtual Environment (Optional)
16 | It's recommended to create a virtual environment to isolate your Django project's dependencies. Open your terminal or command prompt and execute the following command:
17 | python3 -m venv myenv
18 | Replace myenv
with your desired name for the virtual environment.
19 | Activate the Virtual Environment (Optional)
20 | Activate the virtual environment based on your operating system:
21 | Windows:
22 | myenv\Scripts\activate
23 | Unix or Linux:
24 | source myenv/bin/activate
25 | Install Django
26 | With your virtual environment activated, install Django using pip:
27 | pip install django
28 | This command will download and install the latest stable version of Django.
29 | Verify the Installation
30 | To verify that Django is successfully installed, run the following command:
31 | django-admin --version
32 | You should see the installed Django version printed in the console.
33 | Congratulations! You have successfully installed Django on your system. You are now ready to start building your Django web applications.
34 | Running the System on Your Local System
35 |
36 | Fork this repository and move inside it:
37 | git clone https://github.com/X-Evolve/Python_Hunt.git && cd Python_Hunt/producthunt_pro
38 | Migrate the necessary data for the models:
39 | python manage.py migrate
40 | Run the website on your local host:
41 | python manage.py runserver
42 | Click on the URL produced, and it will open in your default browser.
43 |
44 | Congratulations! You have successfully set up your Django Web Server on your local host. You are now ready to contribute!
45 | Getting Started with Contribution
46 |
47 | Create a new branch to work on an issue:
48 | git checkout -b new_work
49 | Once you have completed your code, open a Pull Request (PR).
50 | From the root of the project, run the following commands:
51 | git add .
52 | git commit -m "Description of your work (short one is preferred)"
53 | git push origin new_work
54 | Open your forked repository in your browser and then raise a Pull Request (PR) to the main branch of this repository!
55 |
56 | How to Add Your Files in the Project
57 | If you want to add CSS, JavaScript, or image files to this project, place them in the static folder:
58 | producthunt_pro/producthunt/static/
59 | Import them into the code using the following:
60 | (At the top of the HTML File)
61 | {% load static %}
62 | (To use your CSS / JavaScript file)
63 | href="{% static 'name of the file' %}"
64 | (To use your image file)
65 | src="{% static 'name of the file' %}"
66 | Additional Resources
67 |
72 | Happy coding with Django! 🐍💙
73 |
74 |
75 |
76 |
77 |
--------------------------------------------------------------------------------
/HacktoberFest2023_Resources/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/X-Evolve/Python_Hunt/19cc60e73beb0446c11e26c3db1971885381b16b/HacktoberFest2023_Resources/.DS_Store
--------------------------------------------------------------------------------
/HacktoberFest2023_Resources/05_logo_set/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/X-Evolve/Python_Hunt/19cc60e73beb0446c11e26c3db1971885381b16b/HacktoberFest2023_Resources/05_logo_set/.DS_Store
--------------------------------------------------------------------------------
/HacktoberFest2023_Resources/05_logo_set/hf10_horizontal_logos/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/X-Evolve/Python_Hunt/19cc60e73beb0446c11e26c3db1971885381b16b/HacktoberFest2023_Resources/05_logo_set/hf10_horizontal_logos/.DS_Store
--------------------------------------------------------------------------------
/HacktoberFest2023_Resources/05_logo_set/hf10_horizontal_logos/cmyk/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/X-Evolve/Python_Hunt/19cc60e73beb0446c11e26c3db1971885381b16b/HacktoberFest2023_Resources/05_logo_set/hf10_horizontal_logos/cmyk/.DS_Store
--------------------------------------------------------------------------------
/HacktoberFest2023_Resources/05_logo_set/hf10_horizontal_logos/cmyk/hf10_horz_fcd_cmyk.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/X-Evolve/Python_Hunt/19cc60e73beb0446c11e26c3db1971885381b16b/HacktoberFest2023_Resources/05_logo_set/hf10_horizontal_logos/cmyk/hf10_horz_fcd_cmyk.png
--------------------------------------------------------------------------------
/HacktoberFest2023_Resources/05_logo_set/hf10_horizontal_logos/cmyk/hf10_horz_fcl_cmyk.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/X-Evolve/Python_Hunt/19cc60e73beb0446c11e26c3db1971885381b16b/HacktoberFest2023_Resources/05_logo_set/hf10_horizontal_logos/cmyk/hf10_horz_fcl_cmyk.png
--------------------------------------------------------------------------------
/HacktoberFest2023_Resources/05_logo_set/hf10_horizontal_logos/cmyk/hf10_horz_scd_cmyk.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/X-Evolve/Python_Hunt/19cc60e73beb0446c11e26c3db1971885381b16b/HacktoberFest2023_Resources/05_logo_set/hf10_horizontal_logos/cmyk/hf10_horz_scd_cmyk.png
--------------------------------------------------------------------------------
/HacktoberFest2023_Resources/05_logo_set/hf10_horizontal_logos/cmyk/hf10_horz_scl_cmyk.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/X-Evolve/Python_Hunt/19cc60e73beb0446c11e26c3db1971885381b16b/HacktoberFest2023_Resources/05_logo_set/hf10_horizontal_logos/cmyk/hf10_horz_scl_cmyk.png
--------------------------------------------------------------------------------
/HacktoberFest2023_Resources/05_logo_set/hf10_horizontal_logos/rgb/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/X-Evolve/Python_Hunt/19cc60e73beb0446c11e26c3db1971885381b16b/HacktoberFest2023_Resources/05_logo_set/hf10_horizontal_logos/rgb/.DS_Store
--------------------------------------------------------------------------------
/HacktoberFest2023_Resources/05_logo_set/hf10_horizontal_logos/rgb/hf10_horz_fcd_rgb.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/X-Evolve/Python_Hunt/19cc60e73beb0446c11e26c3db1971885381b16b/HacktoberFest2023_Resources/05_logo_set/hf10_horizontal_logos/rgb/hf10_horz_fcd_rgb.png
--------------------------------------------------------------------------------
/HacktoberFest2023_Resources/05_logo_set/hf10_horizontal_logos/rgb/hf10_horz_fcl_rgb.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/X-Evolve/Python_Hunt/19cc60e73beb0446c11e26c3db1971885381b16b/HacktoberFest2023_Resources/05_logo_set/hf10_horizontal_logos/rgb/hf10_horz_fcl_rgb.png
--------------------------------------------------------------------------------
/HacktoberFest2023_Resources/05_logo_set/hf10_horizontal_logos/rgb/hf10_horz_scd_rgb.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/X-Evolve/Python_Hunt/19cc60e73beb0446c11e26c3db1971885381b16b/HacktoberFest2023_Resources/05_logo_set/hf10_horizontal_logos/rgb/hf10_horz_scd_rgb.png
--------------------------------------------------------------------------------
/HacktoberFest2023_Resources/05_logo_set/hf10_horizontal_logos/rgb/hf10_horz_scl_rgb.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/X-Evolve/Python_Hunt/19cc60e73beb0446c11e26c3db1971885381b16b/HacktoberFest2023_Resources/05_logo_set/hf10_horizontal_logos/rgb/hf10_horz_scl_rgb.png
--------------------------------------------------------------------------------
/HacktoberFest2023_Resources/05_logo_set/hf10_logomark_icon/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/X-Evolve/Python_Hunt/19cc60e73beb0446c11e26c3db1971885381b16b/HacktoberFest2023_Resources/05_logo_set/hf10_logomark_icon/.DS_Store
--------------------------------------------------------------------------------
/HacktoberFest2023_Resources/05_logo_set/hf10_logomark_icon/cmyk/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/X-Evolve/Python_Hunt/19cc60e73beb0446c11e26c3db1971885381b16b/HacktoberFest2023_Resources/05_logo_set/hf10_logomark_icon/cmyk/.DS_Store
--------------------------------------------------------------------------------
/HacktoberFest2023_Resources/05_logo_set/hf10_logomark_icon/cmyk/hf10_icon_fcd_cmyk.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/X-Evolve/Python_Hunt/19cc60e73beb0446c11e26c3db1971885381b16b/HacktoberFest2023_Resources/05_logo_set/hf10_logomark_icon/cmyk/hf10_icon_fcd_cmyk.png
--------------------------------------------------------------------------------
/HacktoberFest2023_Resources/05_logo_set/hf10_logomark_icon/cmyk/hf10_icon_fcl_cmyk.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/X-Evolve/Python_Hunt/19cc60e73beb0446c11e26c3db1971885381b16b/HacktoberFest2023_Resources/05_logo_set/hf10_logomark_icon/cmyk/hf10_icon_fcl_cmyk.png
--------------------------------------------------------------------------------
/HacktoberFest2023_Resources/05_logo_set/hf10_logomark_icon/cmyk/hf10_icon_scd_cmyk.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/X-Evolve/Python_Hunt/19cc60e73beb0446c11e26c3db1971885381b16b/HacktoberFest2023_Resources/05_logo_set/hf10_logomark_icon/cmyk/hf10_icon_scd_cmyk.png
--------------------------------------------------------------------------------
/HacktoberFest2023_Resources/05_logo_set/hf10_logomark_icon/cmyk/hf10_icon_scl_cmyk.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/X-Evolve/Python_Hunt/19cc60e73beb0446c11e26c3db1971885381b16b/HacktoberFest2023_Resources/05_logo_set/hf10_logomark_icon/cmyk/hf10_icon_scl_cmyk.png
--------------------------------------------------------------------------------
/HacktoberFest2023_Resources/05_logo_set/hf10_logomark_icon/rgb/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/X-Evolve/Python_Hunt/19cc60e73beb0446c11e26c3db1971885381b16b/HacktoberFest2023_Resources/05_logo_set/hf10_logomark_icon/rgb/.DS_Store
--------------------------------------------------------------------------------
/HacktoberFest2023_Resources/05_logo_set/hf10_logomark_icon/rgb/hf10_icon_fcd_rgb.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/X-Evolve/Python_Hunt/19cc60e73beb0446c11e26c3db1971885381b16b/HacktoberFest2023_Resources/05_logo_set/hf10_logomark_icon/rgb/hf10_icon_fcd_rgb.png
--------------------------------------------------------------------------------
/HacktoberFest2023_Resources/05_logo_set/hf10_logomark_icon/rgb/hf10_icon_fcl_rgb.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/X-Evolve/Python_Hunt/19cc60e73beb0446c11e26c3db1971885381b16b/HacktoberFest2023_Resources/05_logo_set/hf10_logomark_icon/rgb/hf10_icon_fcl_rgb.png
--------------------------------------------------------------------------------
/HacktoberFest2023_Resources/05_logo_set/hf10_logomark_icon/rgb/hf10_icon_scd_rgb.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/X-Evolve/Python_Hunt/19cc60e73beb0446c11e26c3db1971885381b16b/HacktoberFest2023_Resources/05_logo_set/hf10_logomark_icon/rgb/hf10_icon_scd_rgb.png
--------------------------------------------------------------------------------
/HacktoberFest2023_Resources/05_logo_set/hf10_logomark_icon/rgb/hf10_icon_scl_rgb.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/X-Evolve/Python_Hunt/19cc60e73beb0446c11e26c3db1971885381b16b/HacktoberFest2023_Resources/05_logo_set/hf10_logomark_icon/rgb/hf10_icon_scl_rgb.png
--------------------------------------------------------------------------------
/HacktoberFest2023_Resources/05_logo_set/hf10_vertical_logos/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/X-Evolve/Python_Hunt/19cc60e73beb0446c11e26c3db1971885381b16b/HacktoberFest2023_Resources/05_logo_set/hf10_vertical_logos/.DS_Store
--------------------------------------------------------------------------------
/HacktoberFest2023_Resources/05_logo_set/hf10_vertical_logos/cmyk/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/X-Evolve/Python_Hunt/19cc60e73beb0446c11e26c3db1971885381b16b/HacktoberFest2023_Resources/05_logo_set/hf10_vertical_logos/cmyk/.DS_Store
--------------------------------------------------------------------------------
/HacktoberFest2023_Resources/05_logo_set/hf10_vertical_logos/cmyk/hf10_vert_fcd_cmyk.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/X-Evolve/Python_Hunt/19cc60e73beb0446c11e26c3db1971885381b16b/HacktoberFest2023_Resources/05_logo_set/hf10_vertical_logos/cmyk/hf10_vert_fcd_cmyk.png
--------------------------------------------------------------------------------
/HacktoberFest2023_Resources/05_logo_set/hf10_vertical_logos/cmyk/hf10_vert_fcl_cmyk.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/X-Evolve/Python_Hunt/19cc60e73beb0446c11e26c3db1971885381b16b/HacktoberFest2023_Resources/05_logo_set/hf10_vertical_logos/cmyk/hf10_vert_fcl_cmyk.png
--------------------------------------------------------------------------------
/HacktoberFest2023_Resources/05_logo_set/hf10_vertical_logos/cmyk/hf10_vert_scd_cmyk.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/X-Evolve/Python_Hunt/19cc60e73beb0446c11e26c3db1971885381b16b/HacktoberFest2023_Resources/05_logo_set/hf10_vertical_logos/cmyk/hf10_vert_scd_cmyk.png
--------------------------------------------------------------------------------
/HacktoberFest2023_Resources/05_logo_set/hf10_vertical_logos/cmyk/hf10_vert_scl_cmyk.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/X-Evolve/Python_Hunt/19cc60e73beb0446c11e26c3db1971885381b16b/HacktoberFest2023_Resources/05_logo_set/hf10_vertical_logos/cmyk/hf10_vert_scl_cmyk.png
--------------------------------------------------------------------------------
/HacktoberFest2023_Resources/05_logo_set/hf10_vertical_logos/rgb/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/X-Evolve/Python_Hunt/19cc60e73beb0446c11e26c3db1971885381b16b/HacktoberFest2023_Resources/05_logo_set/hf10_vertical_logos/rgb/.DS_Store
--------------------------------------------------------------------------------
/HacktoberFest2023_Resources/05_logo_set/hf10_vertical_logos/rgb/hf10_vert_fcd_rgb.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/X-Evolve/Python_Hunt/19cc60e73beb0446c11e26c3db1971885381b16b/HacktoberFest2023_Resources/05_logo_set/hf10_vertical_logos/rgb/hf10_vert_fcd_rgb.png
--------------------------------------------------------------------------------
/HacktoberFest2023_Resources/05_logo_set/hf10_vertical_logos/rgb/hf10_vert_fcl_rgb.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/X-Evolve/Python_Hunt/19cc60e73beb0446c11e26c3db1971885381b16b/HacktoberFest2023_Resources/05_logo_set/hf10_vertical_logos/rgb/hf10_vert_fcl_rgb.png
--------------------------------------------------------------------------------
/HacktoberFest2023_Resources/05_logo_set/hf10_vertical_logos/rgb/hf10_vert_scd_rgb.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/X-Evolve/Python_Hunt/19cc60e73beb0446c11e26c3db1971885381b16b/HacktoberFest2023_Resources/05_logo_set/hf10_vertical_logos/rgb/hf10_vert_scd_rgb.png
--------------------------------------------------------------------------------
/HacktoberFest2023_Resources/05_logo_set/hf10_vertical_logos/rgb/hf10_vert_scl_rgb.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/X-Evolve/Python_Hunt/19cc60e73beb0446c11e26c3db1971885381b16b/HacktoberFest2023_Resources/05_logo_set/hf10_vertical_logos/rgb/hf10_vert_scl_rgb.png
--------------------------------------------------------------------------------
/HacktoberFest2023_Resources/06_banners/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/X-Evolve/Python_Hunt/19cc60e73beb0446c11e26c3db1971885381b16b/HacktoberFest2023_Resources/06_banners/.DS_Store
--------------------------------------------------------------------------------
/HacktoberFest2023_Resources/06_banners/hf10_banner/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/X-Evolve/Python_Hunt/19cc60e73beb0446c11e26c3db1971885381b16b/HacktoberFest2023_Resources/06_banners/hf10_banner/.DS_Store
--------------------------------------------------------------------------------
/HacktoberFest2023_Resources/06_banners/hf10_banner/hf10_banner_1032x600.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/X-Evolve/Python_Hunt/19cc60e73beb0446c11e26c3db1971885381b16b/HacktoberFest2023_Resources/06_banners/hf10_banner/hf10_banner_1032x600.png
--------------------------------------------------------------------------------
/HacktoberFest2023_Resources/06_banners/hf10_banner/hf10_banner_sponsors_1032x600.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/X-Evolve/Python_Hunt/19cc60e73beb0446c11e26c3db1971885381b16b/HacktoberFest2023_Resources/06_banners/hf10_banner/hf10_banner_sponsors_1032x600.png
--------------------------------------------------------------------------------
/HacktoberFest2023_Resources/06_banners/hf10_email_assets/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/X-Evolve/Python_Hunt/19cc60e73beb0446c11e26c3db1971885381b16b/HacktoberFest2023_Resources/06_banners/hf10_email_assets/.DS_Store
--------------------------------------------------------------------------------
/HacktoberFest2023_Resources/06_banners/hf10_email_assets/hf10_email_header_600x360px.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/X-Evolve/Python_Hunt/19cc60e73beb0446c11e26c3db1971885381b16b/HacktoberFest2023_Resources/06_banners/hf10_email_assets/hf10_email_header_600x360px.jpg
--------------------------------------------------------------------------------
/HacktoberFest2023_Resources/06_banners/hf10_email_assets/hf10_email_header_600x360px.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/X-Evolve/Python_Hunt/19cc60e73beb0446c11e26c3db1971885381b16b/HacktoberFest2023_Resources/06_banners/hf10_email_assets/hf10_email_header_600x360px.png
--------------------------------------------------------------------------------
/HacktoberFest2023_Resources/06_banners/hf10_logo_wall/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/X-Evolve/Python_Hunt/19cc60e73beb0446c11e26c3db1971885381b16b/HacktoberFest2023_Resources/06_banners/hf10_logo_wall/.DS_Store
--------------------------------------------------------------------------------
/HacktoberFest2023_Resources/06_banners/hf10_logo_wall/hf10_logo_wall_1920x1080.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/X-Evolve/Python_Hunt/19cc60e73beb0446c11e26c3db1971885381b16b/HacktoberFest2023_Resources/06_banners/hf10_logo_wall/hf10_logo_wall_1920x1080.jpg
--------------------------------------------------------------------------------
/HacktoberFest2023_Resources/06_banners/hf10_logo_wall/hf10_logo_wall_1920x1080.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/X-Evolve/Python_Hunt/19cc60e73beb0446c11e26c3db1971885381b16b/HacktoberFest2023_Resources/06_banners/hf10_logo_wall/hf10_logo_wall_1920x1080.png
--------------------------------------------------------------------------------
/HacktoberFest2023_Resources/GitHub_Cheat_Sheet.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/X-Evolve/Python_Hunt/19cc60e73beb0446c11e26c3db1971885381b16b/HacktoberFest2023_Resources/GitHub_Cheat_Sheet.pdf
--------------------------------------------------------------------------------
/producthunt_pro/accounts/__init__.py:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/X-Evolve/Python_Hunt/19cc60e73beb0446c11e26c3db1971885381b16b/producthunt_pro/accounts/__init__.py
--------------------------------------------------------------------------------
/producthunt_pro/accounts/admin.py:
--------------------------------------------------------------------------------
1 | from django.contrib import admin
2 |
3 | # Register your models here.
4 |
--------------------------------------------------------------------------------
/producthunt_pro/accounts/apps.py:
--------------------------------------------------------------------------------
1 | from django.apps import AppConfig
2 |
3 |
4 | class AccountsConfig(AppConfig):
5 | default_auto_field = 'django.db.models.BigAutoField'
6 | name = 'accounts'
7 |
--------------------------------------------------------------------------------
/producthunt_pro/accounts/migrations/__init__.py:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/X-Evolve/Python_Hunt/19cc60e73beb0446c11e26c3db1971885381b16b/producthunt_pro/accounts/migrations/__init__.py
--------------------------------------------------------------------------------
/producthunt_pro/accounts/models.py:
--------------------------------------------------------------------------------
1 | from django.db import models
2 |
3 | # Create your models here.
4 |
--------------------------------------------------------------------------------
/producthunt_pro/accounts/templates/accounts/login.html:
--------------------------------------------------------------------------------
1 | {% extends 'base.html' %}
2 |
3 | {% block content %}
4 | {% load static %}
5 |
6 |
7 |
8 |
9 |
10 |
11 |
32 |
33 |
Don't have an account? Signup!
34 |
35 |
36 | {% endblock %}
37 |
--------------------------------------------------------------------------------
/producthunt_pro/accounts/templates/accounts/signup.html:
--------------------------------------------------------------------------------
1 | {% extends 'base.html' %}
2 |
3 | {% block content %}
4 | {% load static %}
5 |
6 |
7 |
8 |
9 |
10 |
42 |
43 |
Already Registered? Log in!
44 |
45 |
46 |
47 | {% endblock %}
48 |
--------------------------------------------------------------------------------
/producthunt_pro/accounts/tests.py:
--------------------------------------------------------------------------------
1 | from django.test import TestCase
2 |
3 | # Create your tests here.
4 |
--------------------------------------------------------------------------------
/producthunt_pro/accounts/urls.py:
--------------------------------------------------------------------------------
1 | from django.contrib import admin
2 | from django.urls import path,include
3 | from . import views
4 |
5 | urlpatterns = [
6 | path('signup/',views.signup,name='signup'),
7 | path('login/',views.login,name='login'),
8 | path('logout/',views.logout,name='logout'),
9 |
10 | ]
11 |
--------------------------------------------------------------------------------
/producthunt_pro/accounts/views.py:
--------------------------------------------------------------------------------
1 | from django.shortcuts import render, redirect
2 | from django.contrib.auth.models import User
3 | from django.contrib import auth
4 | from django.contrib.auth.password_validation import validate_password
5 | from django.core.exceptions import ValidationError
6 |
7 | # Create your views here.
8 | def signup(request):
9 | if request.method == 'POST':
10 | username = request.POST['username']
11 | password = request.POST['passwd']
12 | cpassword = request.POST['cpasswd']
13 | error_message = []
14 |
15 | if password == cpassword:
16 | if User.objects.filter(username=username).exists():
17 | error_message.append("Username already taken, Please try a different one!")
18 | return render(request,'accounts/signup.html',{'errors': error_message})
19 |
20 | try:
21 | # Use Django's validate_password to check password complexity
22 | validate_password(password)
23 |
24 | user = User.objects.create_user(username=username, password = password)
25 | auth.login(request,user)
26 | return redirect('home')
27 | except ValidationError as e:
28 | error_message = list(e)
29 |
30 | return render(request,'accounts/signup.html',{'errors': error_message})
31 |
32 | else:
33 | error_message.append("Passwords must match!")
34 | return render(request,'accounts/signup.html',{'errors':error_message})
35 | else:
36 | return render(request,'accounts/signup.html')
37 |
38 | def login(request):
39 | if request.method == 'POST':
40 | user = auth.authenticate(username = request.POST['username'], password = request.POST['password'])
41 | if user is not None:
42 | auth.login(request,user)
43 | return redirect('home')
44 |
45 | else:
46 | return render(request,'accounts/login.html',{'error':"Your username or password is incorrect!"})
47 | else:
48 | return render(request,'accounts/login.html')
49 |
50 | def logout(request):
51 | if request.method == 'POST':
52 | auth.logout(request)
53 | return redirect('home')
54 |
--------------------------------------------------------------------------------
/producthunt_pro/build_files.sh:
--------------------------------------------------------------------------------
1 | # build_files.sh
2 | pip install -r requirements.txt
3 | python3.9 manage.py collectstatic
--------------------------------------------------------------------------------
/producthunt_pro/code_editor/__init__.py:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/X-Evolve/Python_Hunt/19cc60e73beb0446c11e26c3db1971885381b16b/producthunt_pro/code_editor/__init__.py
--------------------------------------------------------------------------------
/producthunt_pro/code_editor/admin.py:
--------------------------------------------------------------------------------
1 | from django.contrib import admin
2 |
3 | # Register your models here.
4 |
--------------------------------------------------------------------------------
/producthunt_pro/code_editor/apps.py:
--------------------------------------------------------------------------------
1 | from django.apps import AppConfig
2 |
3 |
4 | class CodeEditorConfig(AppConfig):
5 | default_auto_field = 'django.db.models.BigAutoField'
6 | name = 'code_editor'
7 |
--------------------------------------------------------------------------------
/producthunt_pro/code_editor/migrations/__init__.py:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/X-Evolve/Python_Hunt/19cc60e73beb0446c11e26c3db1971885381b16b/producthunt_pro/code_editor/migrations/__init__.py
--------------------------------------------------------------------------------
/producthunt_pro/code_editor/models.py:
--------------------------------------------------------------------------------
1 | from django.db import models
2 |
3 | # Create your models here.
4 |
--------------------------------------------------------------------------------
/producthunt_pro/code_editor/static/code_editor/script.js:
--------------------------------------------------------------------------------
1 | // Any changes in Stucture of Code Editor can be added here
--------------------------------------------------------------------------------
/producthunt_pro/code_editor/templates/code_editor/editor.html:
--------------------------------------------------------------------------------
1 | {% extends 'base.html' %}
2 | {% load static %}
3 | {% block content %}
4 |
5 | {% if user.is_authenticated %}
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 | {% else %}
26 |
27 |
28 |
29 |
30 |
31 |
32 |
Error 403: Unauthorized Access
33 |
Oops! It seems like you don't have the necessary permissions to view this page.
34 |
To access this content, please sign in or create an account.
35 |
If you already have an account, Login Here .
36 |
If you need to create an account, Signup Here .
37 |
38 |
39 |
40 |
41 | {% endif %}
42 |
43 | {% endblock %}
44 |
--------------------------------------------------------------------------------
/producthunt_pro/code_editor/tests.py:
--------------------------------------------------------------------------------
1 | from django.test import TestCase
2 |
3 | # Create your tests here.
4 |
--------------------------------------------------------------------------------
/producthunt_pro/code_editor/urls.py:
--------------------------------------------------------------------------------
1 | from django.contrib import admin
2 | from django.urls import path,include
3 | from . import views
4 | urlpatterns = [
5 | path('editor/', views.python_editor, name='editor'),
6 | ]
7 |
--------------------------------------------------------------------------------
/producthunt_pro/code_editor/views.py:
--------------------------------------------------------------------------------
1 | from django.shortcuts import render
2 |
3 | def python_editor(request):
4 | return render(request, 'code_editor/editor.html')
5 |
--------------------------------------------------------------------------------
/producthunt_pro/db.sqlite3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/X-Evolve/Python_Hunt/19cc60e73beb0446c11e26c3db1971885381b16b/producthunt_pro/db.sqlite3
--------------------------------------------------------------------------------
/producthunt_pro/manage.py:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env python
2 | """Django's command-line utility for administrative tasks."""
3 | import os
4 | import sys
5 |
6 |
7 | def main():
8 | """Run administrative tasks."""
9 | os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'producthunt.settings')
10 | try:
11 | from django.core.management import execute_from_command_line
12 | except ImportError as exc:
13 | raise ImportError(
14 | "Couldn't import Django. Are you sure it's installed and "
15 | "available on your PYTHONPATH environment variable? Did you "
16 | "forget to activate a virtual environment?"
17 | ) from exc
18 | execute_from_command_line(sys.argv)
19 |
20 |
21 | if __name__ == '__main__':
22 | main()
--------------------------------------------------------------------------------
/producthunt_pro/package-lock.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "producthunt_pro",
3 | "lockfileVersion": 3,
4 | "requires": true,
5 | "packages": {}
6 | }
7 |
--------------------------------------------------------------------------------
/producthunt_pro/producthunt/__init__.py:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/X-Evolve/Python_Hunt/19cc60e73beb0446c11e26c3db1971885381b16b/producthunt_pro/producthunt/__init__.py
--------------------------------------------------------------------------------
/producthunt_pro/producthunt/asgi.py:
--------------------------------------------------------------------------------
1 | """
2 | ASGI config for producthunt 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/3.2/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', 'producthunt.settings')
15 |
16 | application = get_asgi_application()
17 |
--------------------------------------------------------------------------------
/producthunt_pro/producthunt/settings.py:
--------------------------------------------------------------------------------
1 | """
2 | Django settings for producthunt project.
3 |
4 | Generated by 'django-admin startproject' using Django 3.2.6.
5 |
6 | For more information on this file, see
7 | https://docs.djangoproject.com/en/3.2/topics/settings/
8 |
9 | For the full list of settings and their values, see
10 | https://docs.djangoproject.com/en/3.2/ref/settings/
11 | """
12 |
13 | from pathlib import Path
14 | import os
15 | from decouple import config
16 | # Build paths inside the project like this: BASE_DIR / 'subdir'.
17 | BASE_DIR = Path(__file__).resolve().parent.parent
18 |
19 | # Quick-start development settings - unsuitable for production
20 | # See https://docs.djangoproject.com/en/3.2/howto/deployment/checklist/
21 |
22 | # SECURITY WARNING: keep the secret key used in production secret!
23 | SECRET_KEY = config('SECRET_KEY')
24 |
25 | # SECURITY WARNING: don't run with debug turned on in production!
26 | DEBUG = False
27 |
28 | ALLOWED_HOSTS = ['.vercel.app','127.0.0.1','.now.sh','*']
29 |
30 |
31 | # Application definition
32 |
33 | INSTALLED_APPS = [
34 | 'products.apps.ProductsConfig',
35 | 'accounts.apps.AccountsConfig',
36 | 'code_editor.apps.CodeEditorConfig',
37 | 'django.contrib.admin',
38 | 'django.contrib.auth',
39 | 'django.contrib.contenttypes',
40 | 'django.contrib.sessions',
41 | 'django.contrib.messages',
42 | 'django.contrib.staticfiles',
43 | 'django_advanced_password_validation',
44 | ]
45 |
46 | MIDDLEWARE = [
47 | 'django.middleware.security.SecurityMiddleware',
48 | 'django.contrib.sessions.middleware.SessionMiddleware',
49 | 'django.middleware.common.CommonMiddleware',
50 | 'django.middleware.csrf.CsrfViewMiddleware',
51 | 'django.contrib.auth.middleware.AuthenticationMiddleware',
52 | 'django.contrib.messages.middleware.MessageMiddleware',
53 | 'django.middleware.clickjacking.XFrameOptionsMiddleware',
54 | ]
55 |
56 | ROOT_URLCONF = 'producthunt.urls'
57 |
58 | TEMPLATES = [
59 | {
60 | 'BACKEND': 'django.template.backends.django.DjangoTemplates',
61 | 'DIRS': ['producthunt/templates'],
62 | 'APP_DIRS': True,
63 | 'OPTIONS': {
64 | 'context_processors': [
65 | 'django.template.context_processors.debug',
66 | 'django.template.context_processors.request',
67 | 'django.contrib.auth.context_processors.auth',
68 | 'django.contrib.messages.context_processors.messages',
69 | ],
70 | },
71 | },
72 | ]
73 |
74 | WSGI_APPLICATION = 'producthunt.wsgi.application'
75 |
76 |
77 | # Database
78 | # https://docs.djangoproject.com/en/3.2/ref/settings/#databases
79 | DATABASES = {
80 | 'default': {
81 | 'ENGINE': 'django.db.backends.postgresql_psycopg2',
82 | 'NAME': config("DEV_DATABASE_NAME"),
83 | 'USER': config("DEV_DATABASE_USER"),
84 | 'PASSWORD': config("DEV_DATABASE_PASSWORD"),
85 | 'HOST': config("DEV_DATABASE_HOST"),
86 | 'PORT': config("DEV_DATABASE_PORT"),
87 | 'OPTIONS': {
88 | 'sslmode': 'require',
89 | },
90 | }
91 | }
92 |
93 |
94 | # Password validation
95 | # https://docs.djangoproject.com/en/3.2/ref/settings/#auth-password-validators
96 |
97 | AUTH_PASSWORD_VALIDATORS = [
98 | {
99 | 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
100 | 'OPTIONS': {
101 | 'min_length': 8,
102 | },
103 | },
104 | {
105 | 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
106 | },
107 | {
108 | 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
109 | },
110 | {
111 | 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
112 | },
113 | {
114 | 'NAME': 'django_advanced_password_validation.advanced_password_validation.ContainsUppercaseValidator',
115 | 'OPTIONS': {
116 | 'min_uppercase': 1
117 | }
118 | },
119 | {
120 | 'NAME': 'django_advanced_password_validation.advanced_password_validation.ContainsLowercaseValidator',
121 | 'OPTIONS': {
122 | 'min_lowercase': 1
123 | }
124 | },
125 | {
126 | 'NAME': 'django_advanced_password_validation.advanced_password_validation.ContainsSpecialCharactersValidator',
127 | 'OPTIONS': {
128 | 'min_characters': 1
129 | }
130 | },
131 | ]
132 |
133 |
134 | # Internationalization
135 | # https://docs.djangoproject.com/en/3.2/topics/i18n/
136 |
137 | LANGUAGE_CODE = 'en-us'
138 |
139 | TIME_ZONE = 'UTC'
140 |
141 | USE_I18N = True
142 |
143 | USE_L10N = True
144 |
145 | USE_TZ = True
146 |
147 |
148 | # Static files (CSS, JavaScript, Images)
149 | # https://docs.djangoproject.com/en/3.2/howto/static-files/
150 | STATICFILES_DIRS = [
151 | os.path.join(BASE_DIR,'producthunt/static/')
152 | ]
153 |
154 | STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles_build', 'static')
155 | STATIC_URL = '/static/'
156 |
157 | # Default primary key field type
158 | # https://docs.djangoproject.com/en/3.2/ref/settings/#default-auto-field
159 |
160 | DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
161 |
162 |
163 | MEDIA_ROOT = os.path.join(BASE_DIR,'media')
164 | MEDIA_URL = '/media/'
--------------------------------------------------------------------------------
/producthunt_pro/producthunt/static/Django_Logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/X-Evolve/Python_Hunt/19cc60e73beb0446c11e26c3db1971885381b16b/producthunt_pro/producthunt/static/Django_Logo.png
--------------------------------------------------------------------------------
/producthunt_pro/producthunt/static/Django_Logo2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/X-Evolve/Python_Hunt/19cc60e73beb0446c11e26c3db1971885381b16b/producthunt_pro/producthunt/static/Django_Logo2.png
--------------------------------------------------------------------------------
/producthunt_pro/producthunt/static/IntegrateHTML_CSS.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/X-Evolve/Python_Hunt/19cc60e73beb0446c11e26c3db1971885381b16b/producthunt_pro/producthunt/static/IntegrateHTML_CSS.png
--------------------------------------------------------------------------------
/producthunt_pro/producthunt/static/Plogo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/X-Evolve/Python_Hunt/19cc60e73beb0446c11e26c3db1971885381b16b/producthunt_pro/producthunt/static/Plogo.png
--------------------------------------------------------------------------------
/producthunt_pro/producthunt/static/Python_Keywords/Keywords.css:
--------------------------------------------------------------------------------
1 | @import url("https://fonts.googleapis.com/css2?family=Noto+Naskh+Arabic&display=swap");
2 | .container {
3 | width: 90%;
4 | margin: auto;
5 | text-align: center;
6 | margin-bottom: 10%;
7 | }
8 | table {
9 | width: 800px;
10 | border-collapse: collapse;
11 | overflow: hidden;
12 | }
13 | th,
14 | td {
15 | padding: 15px;
16 | text-align: left;
17 | }
18 | tbody td:hover::before {
19 | content: "";
20 | position: absolute;
21 | background-color: #f1f1f1;
22 | z-index: -1;
23 | }
24 | .heading {
25 | display: flex;
26 | justify-content: center;
27 | align-items: center;
28 | margin-top: 2%;
29 | font-size: 14px;
30 | font-style: normal;
31 | font-family: "Droid Sans Mono", "Inconsolata", "Menlo", "Consolas",
32 | "Bitstream Vera Sans Mono", "Courier", monospace;
33 | }
34 | .codes {
35 | width: min(92%, 1200px);
36 | margin: 3% auto;
37 | display: grid;
38 | grid-template-columns: 1fr;
39 | gap: 2rem;
40 | }
41 | .code-snippet {
42 | padding: 10px;
43 | font-size: 14px;
44 | overflow-x: auto;
45 | font-style: normal;
46 | font-family: "Droid Sans Mono", "Inconsolata", "Menlo", "Consolas",
47 | "Bitstream Vera Sans Mono", "Courier", monospace;
48 | background-color: #141b29;
49 | color: white;
50 | padding: 40px;
51 | border-radius: 10px;
52 | font-size: large;
53 | }
54 | table {
55 | width: 100%;
56 | border-collapse: collapse;
57 | }
58 | th,
59 | td {
60 | border: 1px solid black;
61 | padding: 10px;
62 | }
63 | tr:nth-child(odd) {
64 | background-color: rgba(0, 0, 0, 0.731);
65 | }
66 | tr:nth-child(even) {
67 | background-color: #000000;
68 | }
69 | td {
70 | font-size: large;
71 | font-family: "Lobster", cursive;
72 | font-family: "Montserrat", sans-serif;
73 | font-family: "Tilt Prism", cursive;
74 | }
75 | .code-font {
76 | font-size: large;
77 | color: #abb2bf;
78 | }
79 | thead {
80 | font-size: xx-large;
81 | }
82 | .details {
83 | padding: 3rem;
84 | border-radius: 10px;
85 | font-family: "Noto Naskh Arabic", serif;
86 | margin: 4rem auto;
87 | font-size: large;
88 | max-width: 70rem;
89 | width: 90%;
90 | border-style: solid;
91 | border-radius: 3rem;
92 | }
93 | @media (min-width: 768px) {
94 | .details {
95 | width: 70%;
96 | /* Adjust width for larger screens */
97 | }
98 | .codes {
99 | grid-template-columns: 1fr 1fr;
100 | /* Switch to double column on larger screens */
101 | }
102 | }
103 |
--------------------------------------------------------------------------------
/producthunt_pro/producthunt/static/Python_Keywords/Loops.css:
--------------------------------------------------------------------------------
1 | pre{
2 | background:beige;
3 | }
4 |
--------------------------------------------------------------------------------
/producthunt_pro/producthunt/static/Python_Keywords/doc.css:
--------------------------------------------------------------------------------
1 | header {
2 | background-color: #2e2e2e;
3 | color: #ffffff;
4 | padding: 10px;
5 | text-align: center;
6 | }
7 |
8 | section {
9 | width: 80%;
10 | margin: 0 auto;
11 | padding: 20px;
12 | background-color: #ffffffbb;
13 | box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
14 | transition: 0.6s;
15 | }
16 |
17 | body {
18 | background-color: #ffffff;
19 | color: #2e2e2e;
20 | font-family: sans-serif;
21 | }
22 |
23 | pre code {
24 | display: block;
25 | background-color: #2e2e2e;
26 | color: #ffffff;
27 | }
28 |
29 | .comment {
30 | color: #888888
31 | }
32 |
33 | .string {
34 | color: #77ff00
35 | }
36 |
37 | .number {
38 | color: #56ffdd
39 | }
40 |
41 | .var {
42 | color: #bb7bff;
43 | font-weight: 700;
44 | }
45 |
46 | .literal {
47 | color: #78A960
48 | }
49 |
50 | .built_in {
51 | color: #00d181
52 | }
53 |
54 | .function {
55 | color: #6bb8ff;
56 | font-weight: 500;
57 | }
58 |
--------------------------------------------------------------------------------
/producthunt_pro/producthunt/static/Python_Keywords/string.css:
--------------------------------------------------------------------------------
1 | pre{
2 | background:beige;
3 | }
4 |
5 | table {
6 | width: 100%;
7 | border-collapse: collapse;
8 | }
9 |
10 | th,
11 | td {
12 | border: 1px solid black;
13 | padding: 10px;
14 | }
15 |
16 | tr:nth-child(odd) {
17 | background-color: rgba(0, 0, 0, 0.731);
18 |
19 | }
20 |
21 | tr:nth-child(even) {
22 | background-color: #000000;
23 | }
24 |
25 | /* td {
26 | font-size: large;
27 | font-family: 'Lobster', cursive;
28 | font-family: 'Montserrat', sans-serif;
29 | font-family: 'Tilt Prism', cursive;
30 | } */
31 |
--------------------------------------------------------------------------------
/producthunt_pro/producthunt/static/Python_Keywords/style.css:
--------------------------------------------------------------------------------
1 | body {
2 | background-color: rgb(255, 255, 255) !important;
3 | }
4 |
5 | h1 {
6 | text-align: center;
7 | margin-top: 0;
8 | color: #333;
9 | }
10 | h2,
11 | h3 {
12 | color: #333;
13 | }
14 |
15 | .container {
16 | margin-top: 20px;
17 | width: 100vw;
18 | }
19 |
20 | .flowchart {
21 | display: flex;
22 | justify-content: center;
23 | align-items: flex-start;
24 | /* Updated alignment to avoid overlapping */
25 | flex-wrap: wrap;
26 | /* Allow wrapping of flowchart boxes */
27 | margin-bottom: 20px;
28 | /* Add margin at the bottom */
29 | }
30 |
31 | .box {
32 | width: 200px;
33 | padding: 10px;
34 | border: 1px solid #333;
35 | border-radius: 5px;
36 | background-color: #f5f5f5;
37 | text-align: center;
38 | margin: 20px;
39 | }
40 |
41 | .box:before {
42 | content: "";
43 | display: block;
44 | border-top: 1px solid #333;
45 | margin-top: -1px;
46 | }
47 |
48 | .box:first-child:before {
49 | display: none;
50 | }
51 |
52 | .arrow {
53 | display: flex;
54 | justify-content: center;
55 | align-items: center;
56 | position: relative;
57 | margin-top: 10px;
58 | }
59 |
60 | .arrow:before {
61 | content: "";
62 | position: absolute;
63 | border: 2px solid #333;
64 | border-width: 0 2px 2px 0;
65 | width: 10px;
66 | height: 10px;
67 | transform: rotate(45deg);
68 | top: 50%;
69 | left: -15px;
70 | margin-top: -5px;
71 | }
72 |
73 | .number {
74 | background-color: #a1c3f2;
75 | }
76 |
77 | .boolean {
78 | background-color: #a0e0a0;
79 | }
80 |
81 | .sets-mappings {
82 | background-color: #f7d7a0;
83 | }
84 |
85 | .sequences {
86 | background-color: #f7a0a0;
87 | }
88 |
89 | p {
90 | line-height: 1.5;
91 | }
92 |
93 | pre {
94 | background-color: #f5f5f5;
95 | padding: 10px;
96 | border-radius: 5px;
97 | overflow-x: auto;
98 | font-family: Consolas, monospace;
99 | color: #333;
100 | }
101 | .number {
102 | background-color: #a1c3f2;
103 | animation: fade-in-left 0.5s ease-in-out;
104 | }
105 |
106 | .boolean {
107 | background-color: #a0e0a0;
108 | animation: fade-in-left 0.5s ease-in-out;
109 | }
110 |
111 | .sets-mappings {
112 | background-color: #f7d7a0;
113 | animation: fade-in-right 0.5s ease-in-out;
114 | }
115 |
116 | .sequences {
117 | background-color: #f7a0a0;
118 | animation: fade-in-right 0.5s ease-in-out;
119 | }
120 | @keyframes fade-in-left {
121 | from {
122 | opacity: 0;
123 | transform: translateX(-20px);
124 | }
125 |
126 | to {
127 | opacity: 1;
128 | transform: translateX(0);
129 | }
130 | }
131 |
132 | @keyframes fade-in-right {
133 | from {
134 | opacity: 0;
135 | transform: translateX(20px);
136 | }
137 |
138 | to {
139 | opacity: 1;
140 | transform: translateX(0);
141 | }
142 | }
143 |
144 | h2 {
145 | text-align: center;
146 | margin-bottom: 10px;
147 | }
148 |
149 | h3 {
150 | color: #333;
151 | }
152 |
153 | p {
154 | line-height: 1.5;
155 | }
156 |
157 | pre {
158 | background-color: #f5f5f5;
159 | padding: 10px;
160 | border-radius: 5px;
161 | overflow-x: auto;
162 | }
163 |
164 | code {
165 | font-family: Consolas, monospace;
166 | color: #333;
167 | }
168 |
--------------------------------------------------------------------------------
/producthunt_pro/producthunt/static/coverpython.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/X-Evolve/Python_Hunt/19cc60e73beb0446c11e26c3db1971885381b16b/producthunt_pro/producthunt/static/coverpython.png
--------------------------------------------------------------------------------
/producthunt_pro/producthunt/static/dictionary.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/X-Evolve/Python_Hunt/19cc60e73beb0446c11e26c3db1971885381b16b/producthunt_pro/producthunt/static/dictionary.png
--------------------------------------------------------------------------------
/producthunt_pro/producthunt/static/function.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/X-Evolve/Python_Hunt/19cc60e73beb0446c11e26c3db1971885381b16b/producthunt_pro/producthunt/static/function.jpg
--------------------------------------------------------------------------------
/producthunt_pro/producthunt/static/keywords.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/X-Evolve/Python_Hunt/19cc60e73beb0446c11e26c3db1971885381b16b/producthunt_pro/producthunt/static/keywords.jpg
--------------------------------------------------------------------------------
/producthunt_pro/producthunt/static/plogo1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/X-Evolve/Python_Hunt/19cc60e73beb0446c11e26c3db1971885381b16b/producthunt_pro/producthunt/static/plogo1.png
--------------------------------------------------------------------------------
/producthunt_pro/producthunt/static/py3version.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/X-Evolve/Python_Hunt/19cc60e73beb0446c11e26c3db1971885381b16b/producthunt_pro/producthunt/static/py3version.png
--------------------------------------------------------------------------------
/producthunt_pro/producthunt/static/pylogo.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/X-Evolve/Python_Hunt/19cc60e73beb0446c11e26c3db1971885381b16b/producthunt_pro/producthunt/static/pylogo.jpg
--------------------------------------------------------------------------------
/producthunt_pro/producthunt/static/python-flow-control-statements.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/X-Evolve/Python_Hunt/19cc60e73beb0446c11e26c3db1971885381b16b/producthunt_pro/producthunt/static/python-flow-control-statements.webp
--------------------------------------------------------------------------------
/producthunt_pro/producthunt/static/sets.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/X-Evolve/Python_Hunt/19cc60e73beb0446c11e26c3db1971885381b16b/producthunt_pro/producthunt/static/sets.png
--------------------------------------------------------------------------------
/producthunt_pro/producthunt/static/step1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/X-Evolve/Python_Hunt/19cc60e73beb0446c11e26c3db1971885381b16b/producthunt_pro/producthunt/static/step1.jpg
--------------------------------------------------------------------------------
/producthunt_pro/producthunt/static/step2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/X-Evolve/Python_Hunt/19cc60e73beb0446c11e26c3db1971885381b16b/producthunt_pro/producthunt/static/step2.jpg
--------------------------------------------------------------------------------
/producthunt_pro/producthunt/static/step3.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/X-Evolve/Python_Hunt/19cc60e73beb0446c11e26c3db1971885381b16b/producthunt_pro/producthunt/static/step3.jpg
--------------------------------------------------------------------------------
/producthunt_pro/producthunt/static/step4.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/X-Evolve/Python_Hunt/19cc60e73beb0446c11e26c3db1971885381b16b/producthunt_pro/producthunt/static/step4.jpg
--------------------------------------------------------------------------------
/producthunt_pro/producthunt/static/tuple.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/X-Evolve/Python_Hunt/19cc60e73beb0446c11e26c3db1971885381b16b/producthunt_pro/producthunt/static/tuple.png
--------------------------------------------------------------------------------
/producthunt_pro/producthunt/static/variables.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/X-Evolve/Python_Hunt/19cc60e73beb0446c11e26c3db1971885381b16b/producthunt_pro/producthunt/static/variables.jpg
--------------------------------------------------------------------------------
/producthunt_pro/producthunt/static/variables_main.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/X-Evolve/Python_Hunt/19cc60e73beb0446c11e26c3db1971885381b16b/producthunt_pro/producthunt/static/variables_main.jpg
--------------------------------------------------------------------------------
/producthunt_pro/producthunt/urls.py:
--------------------------------------------------------------------------------
1 | from django.contrib import admin
2 | from django.urls import path, include
3 | from django.conf import settings # Import settings module
4 | from django.conf.urls.static import static # Import static function
5 |
6 | import products.views
7 | import accounts
8 | import products
9 |
10 | urlpatterns = [
11 | path('admin/', admin.site.urls),
12 | path('', products.views.home, name='home'),
13 | path('accounts/', include('accounts.urls')),
14 | path('products/', include('products.urls')),
15 | path('editor/', include('code_editor.urls')), # For Text Editor
16 | ]
17 |
18 | # Serve media and static files during development
19 |
20 | urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
21 | urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
22 |
--------------------------------------------------------------------------------
/producthunt_pro/producthunt/wsgi.py:
--------------------------------------------------------------------------------
1 | """
2 | WSGI config for producthunt 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/3.2/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', 'producthunt.settings')
15 |
16 | application = get_wsgi_application()
17 |
18 | app = application
19 |
--------------------------------------------------------------------------------
/producthunt_pro/products/__init__.py:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/X-Evolve/Python_Hunt/19cc60e73beb0446c11e26c3db1971885381b16b/producthunt_pro/products/__init__.py
--------------------------------------------------------------------------------
/producthunt_pro/products/admin.py:
--------------------------------------------------------------------------------
1 | from django.contrib import admin
2 |
3 | # Register your models here.
4 |
--------------------------------------------------------------------------------
/producthunt_pro/products/apps.py:
--------------------------------------------------------------------------------
1 | from django.apps import AppConfig
2 |
3 |
4 | class ProductsConfig(AppConfig):
5 | default_auto_field = 'django.db.models.BigAutoField'
6 | name = 'products'
7 |
--------------------------------------------------------------------------------
/producthunt_pro/products/migrations/__init__.py:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/X-Evolve/Python_Hunt/19cc60e73beb0446c11e26c3db1971885381b16b/producthunt_pro/products/migrations/__init__.py
--------------------------------------------------------------------------------
/producthunt_pro/products/models.py:
--------------------------------------------------------------------------------
1 | from django.db import models
2 |
3 | # Create your models here.
4 |
--------------------------------------------------------------------------------
/producthunt_pro/products/templates/products/Python_Intro.html:
--------------------------------------------------------------------------------
1 | {% extends 'base.html' %}
2 | {% block content %}
3 | {% load static %}
4 |
5 | History of Python
6 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
The History of Python: A Brief Overview
33 |
34 |
HTML and CSS, as the foundational technologies of the World Wide Web, have played a crucial role in the dissemination of information and the development of interactive user interfaces. Python, on the other hand, is a high-level programming language known for its simplicity, readability, and versatility. Although Python and web technologies like HTML and CSS are distinct, they often intersect in web development, particularly in the backend processes.
35 |
36 |
37 |
38 |
39 |
Python in Web Development
40 |
41 |
In the early days of the web, dynamic web pages were created using languages like Perl and CGI scripts. However, as web applications grew in complexity, the need for more structured and powerful languages became apparent.Python emerged as a formidable contender for web development due to its simplicity, readability, and extensive standard library. With the advent of frameworks like Django and Flask in the early 2000s, Python gained significant traction in web development. Python emerged as a formidable contender for web development due to its simplicity, readability, and extensive standard library. With the advent of frameworks like Django and Flask in the early 2000s, Python gained significant traction in web development.
42 |
43 |
44 |
45 |
46 |
Integration with HTML and CSS
47 |
48 |
HTML and CSS, as the foundational technologies of the World Wide Web, have played a crucial role in the dissemination of information and the development of interactive user interfaces. Python, on the other hand, is a high-level programming language known for its simplicity, readability, and versatility. Although Python and web technologies like HTML and CSS are distinct, they often intersect in web development, particularly in the backend processes.
49 |
50 |
51 |
52 |
53 |
54 |
Basic Definitions
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
Server-Side Scripting
65 |
Python is commonly used for server-side scripting, where it generates dynamic content on the server before sending it to the client's web browser. This is achieved by embedding Python code within HTML files using frameworks like Django, Flask, or Pyramid.
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
Automation and Preprocessing
76 |
Python can be used to automate tasks related to web development. For example, it can be employed in tasks like minifying CSS files, optimizing images, or generating HTML files from templates.
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
Integration with HTML and CSS
87 |
Python frameworks often incorporate templating engines like Jinja2 or Django templates. These allow developers to separate HTML/CSS templates from Python logic, enhancing code maintainability and readability.
88 |
89 |
90 |
91 |
92 |
93 |
Conclusion
94 |
95 |
While Python is not inherently a markup or styling language, its versatility and simplicity have made it an invaluable tool in web development. Through server-side scripting, templating engines, and automation, Python seamlessly integrates with HTML and CSS to create dynamic and visually appealing web applications. This convergence of technologies has contributed to the continued success and popularity of Python in the ever-evolving landscape of web development.
96 |
97 |
98 |
99 |
100 |
101 |
102 | {% endblock %}
--------------------------------------------------------------------------------
/producthunt_pro/products/templates/products/comments.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Python Comments - Page 4
5 |
6 |
7 | Python Comments - Page 4
8 |
9 | Single-line Comments
10 |
11 | In Python, single-line comments are created using the hash symbol (#). Anything written after the hash symbol on the same line is considered a comment and is ignored by the Python interpreter.
12 | Single-line comments are typically used to add explanations or notes to the code for better understanding.
13 |
14 |
15 | Example:
16 |
17 |
18 | # This is a single-line comment
19 | print("Hello, World!") # This line prints a greeting
20 |
21 |
22 |
23 | Multi-line Comments
24 |
25 | Unlike some other programming languages, Python doesn't have a built-in syntax for multi-line comments. However, you can use triple quotes (either single or double) to create multi-line strings, which can act as multi-line comments.
26 | These multi-line strings are not assigned to any variable, so they are essentially treated as comments by the interpreter.
27 |
28 |
29 | Example:
30 |
31 |
32 | '''
33 | This is a multi-line comment.
34 | It spans multiple lines.
35 | '''
36 | print("Hello, World!")
37 |
38 |
39 |
40 | Conclusion
41 |
42 | Comments are useful for documenting your code and making it more readable. They help you and others understand the purpose and functionality of different parts of the code.
43 | By using single-line and multi-line comments effectively, you can improve the maintainability of your Python programs.
44 |
45 |
46 |
--------------------------------------------------------------------------------
/producthunt_pro/products/templates/products/errors_exceptions_debugging.html:
--------------------------------------------------------------------------------
1 | {% extends 'base.html' %}
2 | {% load static %}
3 | {% block content %}
4 |
5 | Python Errors, Exceptions, and Debugging
6 |
62 |
63 |
64 |
65 |
68 |
69 |
70 |
71 |
Syntax Errors
72 |
73 | These occur when the code violates the rules of Python's syntax.
74 |
75 |
76 |
77 |
78 |
Runtime Errors (Exceptions)
79 |
80 | These occur during the execution of the program. Some common exceptions include:
81 |
82 |
83 | ZeroDivisionError
84 | NameError
85 | TypeError
86 | ValueError
87 | IndexError
88 |
89 |
90 |
91 |
92 |
Handling Exceptions
93 |
94 | This involves using try
, except
, else
, and finally
blocks to handle exceptions gracefully.
95 |
96 |
97 |
98 |
99 |
Raising Exceptions
100 |
101 | You can manually raise exceptions using the raise
keyword.
102 |
103 |
104 |
105 |
106 |
Custom Exceptions
107 |
108 | Creating your own exception classes to handle specific situations.
109 |
110 |
111 |
112 |
113 |
Assertion Errors
114 |
115 | These occur when an assert
statement fails.
116 |
117 |
118 |
119 |
120 |
Debugging Tools
121 |
122 | Utilizing tools like pdb
(Python debugger) to step through code and identify issues.
123 |
124 |
125 |
126 |
127 |
Tracebacks
128 |
129 | Understanding the information provided in the traceback to locate the source of an error.
130 |
131 |
132 |
133 |
134 |
Logging
135 |
136 | Using the logging module to record information about program behavior.
137 |
138 |
139 |
140 |
141 |
Unit Testing and Test Cases
142 |
143 | Writing and executing tests to verify the correctness of your code.
144 |
145 |
146 |
147 |
148 |
Static Code Analysis (Optional)
149 |
150 | Tools like pylint or flake8 that help identify potential issues in your code.
151 |
152 |
153 |
154 |
155 |
Common Debugging Techniques
156 |
157 | Techniques like print statements, logging, and using a debugger to find and fix bugs.
158 |
159 |
160 |
161 |
162 |
Handling Multiple Exceptions
163 |
164 | Dealing with situations where multiple types of exceptions can occur.
165 |
166 |
167 |
168 |
169 |
Resource Cleanup with Context Managers (Optional)
170 |
171 | Using with
statements and context managers to ensure resources are properly released.
172 |
173 |
174 |
175 |
176 |
Debugging in Specific Environments (Optional)
177 |
178 | Understanding how to debug in environments like Jupyter notebooks or web frameworks.
179 |
180 |
181 |
182 |
183 |
184 |
185 |