-
Clone or download the project:
git clone https://github.com/dx9233/smarthome-landing-django.git cd smarthome-landing-django -
Create and activate a virtual environment:
python -m venv venv # Windows venv\Scripts\activate # macOS / Linux source venv/bin/activate
-
Install dependencies:
pip install django
-
Run migrations:
python manage.py migrate
-
Create a superuser (admin account):
python manage.py createsuperuser
-
Start the development server:
python manage.py runserver
-
Open your browser:
- Home page → http://127.0.0.1:8000/
- Admin panel → http://127.0.0.1:8000/admin/
django-template/
├── app/
│ ├── settings.py
│ ├── urls.py
│ ├── ...
├── core/
│ ├── views.py
│ ├── urls.py
│ └── templates/
│ └── base.html
├── manage.py
└── db.sqlite3
-
Modify
core/templates/base.htmlfor your main layout. -
Add new apps using:
python manage.py startapp your_app_name
-
Register new apps in
app/settings.pyunderINSTALLED_APPS.
