https://github.com/paraskuk/basic-django-project
Simple Django Project to understand the basics.
https://github.com/paraskuk/basic-django-project
django python
Last synced: about 2 months ago
JSON representation
Simple Django Project to understand the basics.
- Host: GitHub
- URL: https://github.com/paraskuk/basic-django-project
- Owner: paraskuk
- Created: 2025-01-06T19:56:16.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-01-06T20:00:54.000Z (over 1 year ago)
- Last Synced: 2025-06-05T01:49:46.397Z (about 1 year ago)
- Topics: django, python
- Language: Python
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DjangoProject
This is a simple Django project with two views: `HelloView` and `HelloRoot`.
## Requirements
- Python 3.x
- Django 3.x or later
## Installation
1. Clone the repository:
```sh
git clone
cd DjangoProject
```
2. Create and activate a virtual environment:
```sh
python -m venv venv
source venv/bin/activate # On Windows use `venv\Scripts\activate`
```
3. Install the dependencies:
```sh
pip install -r requirements.txt
```
4. Run the Django development server:
```sh
python manage.py runserver
```
## Usage
- Access the `HelloView` at [http://127.0.0.1:8000/hello/](http://127.0.0.1:8000/hello/)
- Access the `HelloRoot` at [http://127.0.0.1:8000/](http://127.0.0.1:8000/)
## Project Structure
- `DjangoProject/urls.py`: URL configuration for the project.
- `DjangoProject/views.py`: Contains the `HelloView` and `HelloRoot` views.
## License
This project is licensed under the MIT License.