3 horizontal lines, burger
3 horizontal lines, burger
3 horizontal lines, burger
3 horizontal lines, burger

3 horizontal lines, burger
Remove all
LOADING ...

Content



    Create and init the basic and simple Django project

    Clock
    19.07.2024
    /
    Clock
    05.10.2025
    /
    Clock
    1 minute
    An eye
    237
    Hearts
    0
    Connected dots
    0
    Connected dots
    0
    Connected dots
    0
    Tags:
    Backend
    Django

    Create virtual environment and working directories for Django.

    Let’s make a directory.
    mkdir Project
    Go there
    cd Project
    Installing a virtual environment
    python -m venv .venv
    Now, activate virtual environment.
    Linux icon
    Windows icon
    source ./.venv/bin/activate
    source ./.venv/Scripts/activate
    To check a successful activated virtual environment, execute this command to be sure:
    pip list
    We will see either 0 or a couple of them. Or we can run a next command on the Linux system.
    which python
    And if the displayed path to Python is in our working directory, i.e. Project/.venv so everything is working.

    How to create Django project

    Install a package called Django.
    pip install django
    Start a new project called Project1
    django-admin startproject Project1
    Go to Project1
    cd Project1
    Accept all migrations.
    ./manage.py migrate

    How to start Django project / testing it

    Now you can be able to start start testing(local) server.
    ./manage.py runserver
    If everything is done right, you shall see:

    Do not forget to share, like and leave a comment :)

    Comments

    (0)

    captcha
    Send
    LOADING ...
    It's empty now. Be the first (o゚v゚)ノ

    Other

    Similar articles


    Create a new app inside a Django project. How to add this new app to project

    Clock
    19.07.2024
    /
    Clock
    05.10.2025
    An eye
    362
    Hearts
    0
    Connected dots
    0
    Connected dots
    0
    Connected dots
    0
    In this article you will know commands how to create new django app, how to add model to app and how to configure it.

    Why and how to solve server response delay, err_http2_ping_failed error, my investigation and solution

    Clock
    29.09.2024
    /
    Clock
    02.10.2025
    An eye
    1277
    Hearts
    0
    Connected dots
    0
    Connected dots
    0
    Connected dots
    0
    In this article, I will describe in detail how I solved the problem of server response delays (err_http2_ping_failed) to client requests. I will describe the operation of the ERR_HTTP2_PING_FAILED error …

    How to implement localization and translation for django website (python, js, templates and models) p. 5

    Clock
    06.02.2025
    /
    Clock
    02.10.2025
    An eye
    2629
    Hearts
    0
    Connected dots
    0
    Connected dots
    0
    Connected dots
    0
    In this article, I will show how you can add localization and translations to a Django website(i18n). We will translate Python, JS code, as well as templates and Django-models. Plus, …

    Used termins


    Related questions