Advanced Web Development

9. How to start writing a new application in Django

Firstly – set up the virtual environment 1. Go to CMD and navigate to Documents. Create a new folder called read more

October 20th, 2021 Posted in Advanced Web Development

8. Building a lightweight project

The components of Django that we’ve just looked at are really just Python packages that we can import into whichever read more

October 20th, 2021 Posted in Advanced Web Development

7. Django URLs

URL dispatching in Django is the process by which HTTP requests for resources are mapped to functions in Django views. read more

October 20th, 2021 Posted in Advanced Web Development

6. Django templates

We can edit the view we just created so that it uses a template. Note we commented out the html read more

October 20th, 2021 Posted in Advanced Web Development

5. Django models

A Django model is a Python class that describes data resources. In the vast majority of cases, this will be read more

October 20th, 2021 Posted in Advanced Web Development

4. Django views

A Django view function, or view for short, is a Python function that takes a Web request and returns a read more

October 20th, 2021 Posted in Advanced Web Development

3. Creating a new hello app

1. Let’s create some code. Navigate to the directory which contains manage.py (cd my_django_app) and start the webserver $ python read more

October 13th, 2021 Posted in Advanced Web Development

2. Creating a new virtual environment

I used some of this video: https://www.youtube.com/watch?v=LQTMqGns7Co 1. Create a new directory for the project eg C:\Users\paulg.DESKTOP-AU8JD0H\Documents\django> 2. Go to read more

October 13th, 2021 Posted in Advanced Web Development

1. Setting up Django

To check my Python version, go to CMD prompt and type C:\> py –version To set up a test virtual read more

October 13th, 2021 Posted in Advanced Web Development