Git Product home page Git Product logo

cookiecutter-django-magic-content's Introduction

cookiecutter-django-magic-content

A cookiecutter template for Django using django-magic-content

Description

A basic version of of the Daniel Greenfeld's cookiecutter-django.

It'll create a working django project structure (like when you use the startproject)

It uses the django 1.7 and all the django-magic-content dependecies

Pre Requirements

  • Virtualenv (create isolated environment)

    $ sudo apt-get install python-pip
    $ sudo pip install virtualenv
    
  • Python projects in general

    $ sudo apt-get install python-dev python-setuptools
    
  • Pillow (and django-image-cropping for image cropping)

    $ sudo apt-get install libjpeg-dev
    $ sudo apt-get install libtiff4-dev libjpeg8-dev zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev tcl8.5-dev tk8.5-dev python-tk
    $ sudo apt-get install python-imaging
    
  • NODE and NPM (install assets using bower)

    $ curl -sL https://deb.nodesource.com/setup | sudo bash -
    $ sudo apt-get install nodejs
    $ sudo npm install npm -g
    $ npm install -g bower
    
    # Test the installation using
    $ node -v
    $ npm -v
    

Usage

First, get cookiecutter installed

Set up your virtualenv:

$ cd <your-workspace-folder>
$ virtualenv  --no-site-packages mysite-env
$ cd mysite-env
$ source bin/activate
$ pip install cookiecutter

Now run it against this repo:

$ cookiecutter  https://github.com/huogerac/cookiecutter-django-magic-content

You'll be prompted for some questions, answer them...

It prompts you for questions. Answer them:

Cloning into 'cookiecutter-django'...

project_name (default is "project_name")? mysite
repo_name (default is "repo_name")? mysite
author_name (default is "Your Name")? <your name>
email (default is "Your email")? <your email>
description (default is "A short description of the project.")? My awesome website
year (default is "Current year")? 2015

Setup

$ cd mysite/
$ pip install -r requirements/local.txt
$ chmod +x manage.py
$ ./manage.py syncdb
$ ./manage.py migrate
$ ./manage.py bower install
$ ./manage.py generate_colors
$ ./manage.py restore_site --backup-name=personal_website --site-id=1
$ ./manage.py runserver

Finally you can access the localhost:8000 and browser over you new awesome website. You can also login and go back to the localhost:8000 and modify any content, as soon add/change images...

Dependencies

The django-magic-content uses as base architecture:

  • Django
  • django-floppyforms
  • django-ckeditor
  • django-image-cropping

Instead of having a monolitic app, django-magic-content is separated in:

Any Problem?

If you are not sure if this could help your case, drop us a message! It'll be a pleasure help you!

Community

Help us by adding Issues about something that you don't feel it's right

If you don't agree the technology, some feature or the decision we've made, no problem! we're totally open for suggestion!

Contribute, you can help us make the difference.

Keep in touch

We're constantly improving those apps, keep one eye on it.

cookiecutter-django-magic-content's People

Contributors

huogerac avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

lukasgarcya

cookiecutter-django-magic-content's Issues

Fine tune rendering performance

Since there are multiple content-rich sections containing big/cover-size images, filter effects and sometimes even complete slides behaviour for the entire website background, it's interesting to identify, measure and remove or compensate any existing rendering bottlenecks.

One strategy available is informing the browser of these "hot regions" by using the CSS property will-change. For reference see this video: https://www.youtube.com/watch?v=2vFrZXWiwIc

Cheers!

Pillow's version

The Pillow's version 2.9.0 not is running in the manage.py but version 3.0.0 is running fine.

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.