Giter Club home page Giter Club logo

django-pixel's Introduction

Open-source Django App crafted on top of Pixel Lite, an open-source design from Themesberg. The product is designed to deliver the best possible user experience with highly customizable feature-rich pages.


Features

Have questions? Contact Support (Email & Discord) provided by AppSeed

Free Version PRO Version Custom Development
βœ“ Django 4.2.9 Everything in Free, plus: Everything in PRO, plus:
βœ“ Best Practices βœ… Premium Bootstrap Design βœ… 1 Week Custom Development
βœ“ Bootstrap Design βœ… Private REPO Access βœ… Team: PM, Developer, Tester
βœ“ Docker βœ… OAuth - Github βœ… Weekly Sprints
βœ“ CI/CD Flow via Render βœ… Extended User Profile βœ… Technical SPECS
βœ“ `Free Support βœ… Premium Support βœ… Documentation
- - βœ… CI/CD for AWS, DO (Extra)
- - -
------------------------------------ ------------------------------------ ------------------------------------
βœ“ LIVE Demo πŸš€ LIVE Demo πŸ›’ Order: $999 (GUMROAD)

Pixel Bootstrap Lite - Full-Stack Starter generated by AppSeed.


Manual Build

πŸ‘‰ Download the code

$ git clone https://github.com/app-generator/django-pixel.git
$ cd django-pixel

πŸ‘‰ Install modules via VENV

$ virtualenv env
$ source env/bin/activate
$ pip install -r requirements.txt

πŸ‘‰ Set Up Database

$ python manage.py makemigrations
$ python manage.py migrate

πŸ‘‰ Create the Superuser

$ python manage.py createsuperuser

πŸ‘‰ Start the app

$ python manage.py runserver

At this point, the app runs at http://127.0.0.1:8000/.


Codebase structure

The project is coded using a simple and intuitive structure presented below:

< PROJECT ROOT >
   |
   |-- core/                            
   |    |-- settings.py                  # Project Configuration  
   |    |-- urls.py                      # Project Routing
   |
   |-- home/
   |    |-- views.py                     # APP Views 
   |    |-- urls.py                      # APP Routing
   |    |-- models.py                    # APP Models 
   |    |-- tests.py                     # Tests  
   |    |-- templates/                   # Theme Customisation 
   |         |-- pages                   # 
   |              |-- custom-index.html  # Custom Footer      
   |     
   |-- requirements.txt                  # Project Dependencies
   |
   |-- env.sample                        # ENV Configuration (default values)
   |-- manage.py                         # Start the app - Django default start script
   |
   |-- ************************************************************************

How to Customize

When a template file is loaded, Django scans all template directories starting from the ones defined by the user, and returns the first match or an error in case the template is not found. The theme used to style this starter provides the following files:

# This exists in ENV: LIB/theme_pixel
< UI_LIBRARY_ROOT >                      
   |
   |-- templates/                     # Root Templates Folder 
   |    |          
   |    |-- accounts/       
   |    |    |-- sign-in.html         # Sign IN Page
   |    |    |-- sign-up.html         # Sign UP Page
   |    |
   |    |-- includes/       
   |    |    |-- footer.html          # Footer component
   |    |    |-- navigation.html      # Navigation Bar
   |    |    |-- scripts.html         # Scripts Component
   |    |
   |    |-- layouts/       
   |    |    |-- base.html            # Masterpage
   |    |
   |    |-- pages/       
   |         |-- index.html           # Dashboard Page
   |         |-- about.html           # About Page
   |         |-- *.html               # All other pages
   |    
   |-- ************************************************************************

When the project requires customization, we need to copy the original file that needs an update (from the virtual environment) and place it in the template folder using the same path.

For instance, if we want to customize the index.html these are the steps:

  • βœ… Step 1: create the templates DIRECTORY inside the home app
  • βœ… Step 2: configure the project to use this new template directory
    • core/settings.py TEMPLATES section
  • βœ… Step 3: copy the index.html from the original location (inside your ENV) and save it to the home/templates DIR
    • Source PATH: <YOUR_ENV>/LIB/theme_pixel/template/pages/index.html
    • Destination PATH: <PROJECT_ROOT>home/templates/pages/index.html

To speed up all these steps, the codebase is already configured (Steps 1, and 2) and a custom index can be found at this location:

home/templates/pages/custom-index.html

By default, this file is unused because the theme expects index.html (without the custom- prefix).

In order to use it, simply rename it to index.html. Like this, the default version shipped in the library is ignored by Django.

In a similar way, all other files and components can be customized easily.


Deploy on Render

  • Create a Blueprint instance
  • Click New Blueprint Instance button.
  • Connect your repo which you want to deploy.
  • Fill the Service Group Name and click on Update Existing Resources button.
  • After that your deployment will start automatically.

At this point, the product should be LIVE.


Seed project powered by Django Framework on top of Pixel PRO design. Pixel is a premium Bootstrap 5 UI Kit featuring over 200 fully coded UI elements and example pages that will help you prototype and build a website for your next project.

Pixel Bootstrap PRO - Full-Stack Starter generated by AppSeed



Django Pixel Bootstrap 5 - Django Starter provided by AppSeed

django-pixel's People

Contributors

app-generator avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

django-pixel's Issues

Issue with bootstrap version used.

I noted a bug caused by the bootstrap version (4.4.1) that is used in the uikit. The collapsed menu does not display.(see screenshot)

image

However, I notice when I changed the bootstrap version to 4.3.1, I don't see the error.(see screenshot below)

image

Please could it be fixed, I guess it may be the same reason why the other vendor plugins seem not to function well.

css issue

Hi,
I installed the Django-pixel-pro kit as follow :

  1. export the GH_TOKEN
  2. clone the DPP repo
  3. cd django-pixel-pro and create & activate venv (env folder)
  4. pip installl requirements. The theme seems to be correctly installed :

Capture d’écran 2023-04-21 aΜ€ 19 32 10

6. create migration & migrate (dm, dmm) 7. start server (drs) This is what I have with any web browser :

Capture d’écran 2023-04-21 aΜ€ 19 31 15

It seems the css are not loaded. Would you please give me a hand ? Thanks

MODIFICATION OF PAGES

I modified the pages inside the templates, but while running it is still the same, Can you show how can I change the design of the frontend as per my requirement.

how to run using Flask on mac os x

Hi all,

Id like to try the freelancer template for my personal work im new in web-dev id like to know how I can run django-pixel using flask
I mean I know how to run django app using manage.py but im confuse with flash. Also im trying to registrer like in step :
Start the app via flask run
Access the registration page and create a new user:
http://127.0.0.1:8000/register/

Im confuse because I get the same page using manage.py but not working I mean I fell all field but the same registrer page appear again. So how I can run "flask run ..."

(env)sofiane-MBP:desktop Apple$ cd django-pixel
(env)sofiane-MBP:django-pixel Apple$ flask run

  • Tip: There are .env or .flaskenv files present. Do "pip install python-dotenv" to use them.
    Usage: flask run [OPTIONS]
    Try 'flask run --help' for help.

Error: Could not locate a Flask application. Use the 'flask --app' option, 'FLASK_APP' environment variable, or a 'wsgi.py' or 'app.py' file in the current directory.

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.