Giter Club home page Giter Club logo

website's Introduction

Website

The website app is a Django application designed to manage basic web pages within a website.

Quick Start

  1. Add "website" to your INSTALLED_APPS in your Django project's settings:

    INSTALLED_APPS = [
        ...
        'website',
    ]
  2. Include the website URLconf in your project urls.py like this:: you may want to add some url path inside the ''

    path('', include(('website.urls', 'website'), namespace="website")),

  3. Run python manage.py migrate website to create the website models.

  4. Start the development server and visit http://127.0.0.1:8000/admin/ to create the models (you'll need the Admin app enabled).

  5. Visit http://127.0.0.1:8000 to see the website


website docs

if you want to use the article links outside the app you need to use the namespace. it is always a good idea when having many apps inside a Django project to use the namespace. for example:

> <a href="{% url 'website:URL'  %}"</a>

...

User Registration

To enable user registration and authentication, follow these steps:

  1. Add 'django.contrib.auth' and 'django.contrib.auth.urls' to your INSTALLED_APPS in your Django project's settings:

    INSTALLED_APPS = [
        ...
        'django.contrib.auth',
        ...
    ]
  2. Include the authentication URLconf in your project's urls.py:

    path('accounts/', include('django.contrib.auth.urls')),

Now, your website should have user registration and authentication functionality. For more advanced features, refer to the Django Authentication documentation.

website's People

Contributors

leobitto avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.