Giter VIP home page Giter VIP logo

wecode's Introduction

weCode - Deprecated

The source code of WeCode.ly blog. This website is currently being updated to incoporate Django REST.

Features tutorial

image

Specifications

  • Framework: Django
  • Database: PostgreSQL

Installation

Local database setup

  • Create new Postgres database

Development database setup

App Setup

  • Clone the project to your preferred directory

https://github.com/AnasBuhayh/weCode.git

  • Chenge the database variables to your newly created ones in the settings.py file
NAME = '[database name]'
USER = '[database user]'
PASSWORD = '[database password]'
HOST = 'localhost'
PORT = '5432'
  • Recomended: Create a virtual environment

python -m venv [env-name]

  • Recomended: Run virtual environment

.\[env-name]\Scripts\activate

  • Install requirements

pip install -r .\requirements.txt

  • Make migrations

python manage.py makemigrations

then

python manage.py migrate

  • Create superuser

python manage.py createsuperuser

  • Run application

python ./manage.py runserver

wecode's People

Contributors

alma3lol avatar anasbuhayh avatar ridaomar avatar

Stargazers

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

Watchers

 avatar  avatar

wecode's Issues

First migration issue

First time installation

After following the installation guidelines on the README.md, you get the following error when migrating to the newly created database:

psycopg2.errors.UndefinedTable: relation "blog_category" does not exist
LINE 1: ...log_category"."name", "blog_category"."name" FROM "blog_cate...

My workaround was to comment all the URLs and leave only the admin URL pattern. But I am sure that there's a better way to do this.

Fix navbar

Fix navbar elements position

I am trying to center the navbar elements but it didn't work for me.

Post cards

Posts display

Create cards to show post information (title, image, author... etc) on the main page.

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.