Website project - By step - Follow & help

Hey EveryBody,

I’m Chris, first time onforum and today, i create my django project. Many test previously, this project will by complete and shared in production.

I propose to follow step by step and propose debug solution.

Objectif:
Website for several users divided into access groups (possibly from an ldap).

Return views based on group:

  • dashboard
  • a table pointing to an external database
    (each line returns the values ​​of a user)
    (possible to select “details” to another view)
  • create a view per user with a set of information
  • a form tab to return a questionnaire linked to a user
  • more features to come

Specs:

  • développé avec django → 4.1.4
  • python → 3.11.1
  • mysql → 8.0
  • vscode sur Windows Server 2019
  • Workbench->8.0 CE

Thanks all, for participation.

Chris.

STEP installation → OK
I decided not to use VENV because I couldn’t connect my database.

So I installed my project → then my SQL database creates a database for the project with admin rights.

I then connected my project to the database → see the code, in the settings file of my project.

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql',
        'NAME': 'NAMEPROJECT',
        'USER': 'USER',
        'PASSWORD': 'USERPASS*',
        'HOST': 'localhost',
        'PORT': '3306',
    }
}

Then I did my migration (makemigration/migrate) then I created my superuser. I launched the django server → Good the site is visible as well as access to admin interface.

Do you know how I can create my users according to an LDAP?

Hi Chris, and welcome!

There are a couple of packages available for intengrating an LDAP with Django.

When I’m looking for packages to solve a specific issue, I usually start by checking djangopackages.com, in this case: Django Packages : Search

1 Like