Giter Site home page Giter Site logo

ashish-makes / django-tailwind-blog Goto Github PK

View Code? Open in Web Editor NEW
78.0 2.0 33.0 10.22 MB

A Developer Blog and Portfolio Website using Django and Tailwind CSS

License: MIT License

Python 0.33% CSS 3.82% JavaScript 91.82% TypeScript 2.57% HTML 1.46% Procfile 0.01%
blog django django-blog django-blog-app django-framework django-project css3 django-blog-deployment-project django-blog-project-github django-blog-templates

django-tailwind-blog's Introduction

Django Tailwind Blog - A Developer Portfolio & Blog

HTML5 CSS3 TailwindCSS JavaScript Django SQLite Postgres Visual Studio Code

Introduction

"Django Tailwind Blog" is a developer blog and portfolio website built using Django and Tailwind CSS. It includes several pages such as Home, About, Contact, Blog, Projects, Categories, and custom 404 pages. The project features a clean and modern design that is fully responsive and optimized for performance. It includes a powerful admin interface for managing the content, and is easy to customize and deploy to a production environment.

django-tailwind-blog-for-developers

Table of Content

Installation

  1. Clone the repository:
git clone https://github.com/ashish-makes/django-tailwind-blog.git
  1. Navigate to the project directory:
cd `django-tailwind-blog`
  1. Create and activate a new virtual environment:
python -m venv env
source env/bin/activate
  1. Install the project dependencies:
pip install -r requirements.txt
  1. Install the django-tailwind module:
pip install django-tailwind
  1. Add tailwind to your INSTALLED_APPS list in settings.py:
INSTALLED_APPS = [
    # ...
    'tailwind',
    # ...
]
  1. Run the Tailwind CSS configuration command:
python manage.py tailwind init
  1. Create the database tables:
python manage.py migrate
  1. Run the development server:
python manage.py runserver

Technologies used

  1. HTML
  2. CSS
  3. JavaScript
  4. Python

Primary Modules used

  1. Django==4.1.4
  2. django-tailwind==3.4.0
  3. whitenoise==6.3.0
  4. psycopg2==2.9.5
  5. django-tinymce==3.5.0

Features

  1. Responsive design using Tailwind CSS
  2. Admin dashboard for managing blog posts and portfolio items
  3. Contact form for sending messages to the site owner

Pages

  • Home: The landing page of the website, which displays a brief introduction and links to other pages.
  • About: A page that provides information about the site owner, their background, and skills.
  • Contact: A page that contains a contact form for visitors to send messages to the site owner.
  • Blog: A page that displays a list of blog posts in reverse chronological order, with links to individual post pages.
  • Blog Post: A page that displays the content of a single blog post, including the title, author, date, and content.
  • Projects: A page that displays a list of portfolio projects, with links to individual project pages.
  • Project: A page that displays the details of a single portfolio project, including the title, description, date, and any relevant images or links.
  • Categories: A page that displays a list of blog post categories, with links to filtered lists of posts for each category.
  • Custom 404 Pages: Custom error pages that display when a user navigates to a non-existent page or encounters an error.

Website Screenshots

127 0 0 1_8000_about

127 0 0 1_8000_contact

127 0 0 1_8000_blog

127 0 0 1_8000_projects

127 0 0 1_8000_projectsk

Admin Screenshots

127 0 0 1_8000_admin_

127 0 0 1_8000_admin_home_blog_

127 0 0 1_8000_admin_home_blog_7_change_

Deployment

To deploy this project to a web server, you can follow these general steps:

  1. Set up a web server that can run Python applications. This could be a VPS, a PaaS like Heroku, or a cloud-based server like AWS.
  2. Clone the repository to your server:
git clone https://github.com/ashish-makes/django-tailwind-blog.git
  1. Install the project dependencies on your server using pip:
pip install -r requirements.txt
  1. Set up a database for the project, if necessary. You can use a database like PostgreSQL, MySQL, or SQLite, depending on your needs.
  2. Configure the settings.py file with your server's settings:
DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.postgresql',
        'NAME': 'mydatabase',
        'USER': 'mydatabaseuser',
        'PASSWORD': 'mypassword',
        'HOST': 'localhost',
        'PORT': '5432',
    }
}

STATIC_ROOT = '/var/www/static/'
MEDIA_ROOT = '/var/www/media/'

ALLOWED_HOSTS = ['example.com', 'www.example.com']

The DATABASES setting specifies the database connection details. In this example, we're using PostgreSQL with a database named mydatabase, a user named mydatabaseuser, and a password of mypassword. The STATIC_ROOT and MEDIA_ROOT settings specify the file paths where static files and media files will be stored. The ALLOWED_HOSTS setting is a list of domain names that the application is allowed to serve. 6. Run the python manage.py collectstatic command to collect all the static files into the STATIC_ROOT directory:

python manage.py collectstatic
  1. Start the Django development server, or set up a production server using a WSGI server like uWSGI or Gunicorn.
python manage.py runserver
  1. Access the website using your server's IP address or domain name, and the port number of the server if necessary. For example, if you're running the development server on port 8000, you can access the website at http://your-server-ip:8000/.

django-tailwind-blog's People

Contributors

ashish-makes 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

Watchers

 avatar  avatar

django-tailwind-blog's Issues

Blank space problem between Content and Footer

Hi,

i was searching for a template as i'm not very confident with CSS/HTML, and i wanted to use your template.

When the content of the page is not enough a blank space appears after the footer until the end of the page.

Capture d’écran 2023-12-07 à 12 47 45

If the footer is fixed at the bottom, the blank space is now between the content and the footer

Capture d’écran 2023-12-07 à 12 48 23

Did you get before this problem ? :)

Thanks !

sqlite3 account

Hi, thank for your public repos.

I am trying setup this repos, every thing is okay, but the account and the password to access admin site is not found. Please tell me this information.

Thank you so much again !

Deployed Django keeps asking for reload each 30 seconds

This problem appeared when I deployed this forked project on a server and connected website. When I launch a project on a localhost, the problem disappears. Nothing has changed in the architecture. Does anybody know what to do stop this notification?

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.