Giter VIP home page Giter VIP logo

slcpy.com's Introduction

slcpy.com

Official Repo of SLCPython's website

github twitter meetup

Contributing

Fork & Clone the Repo

  1. git clone [email protected]:<your github username>/slcpy.com
  2. cd slcpy

Local Dev Set up

Install virtualenv & virtualenvwrapper

Activate virtualenvwrapper

mkvirtualenv slcpy

Add localsettings to virtualenv:

In ~/.virtualenvs/slcpy/bin/postactivate add this line →export DJANGO_SETTINGS_MODULE=slcpy.settings.local

Add apps to your virtualenv:

add2virtualenv `pwd`/apps # note the backticks

Deactivate and reactivate virtualenv in the slcpy folder:

deactivate && workonslcpy

Pull requests

When you've finished your coding, create a new git branch, commit to that branch, and merge to master. We use nvie's succesful git branching model for managing branches.

Push your master branch to your repo and send a pull request. See below for directions on pushing straight to production.

Handy tips

Adding the following to your .bash_aliases, .bashrc or .bash_profile will let you easily set up a dev environment:

alias slcpy='cd ~/<your workspace folder>/slcpy && workon slcpy`
alias startslcpy='slcpy && ./manage.py runserver`

Coding Best Practices

  • Do not use tabs to indent. Use spaces for all indentation.
  • html,css,sass/scss, and javascript files should only have 2 space indents
  • python files should have 4 space indent
  • png is the preferred image format.
  • With images, if no automatic conversion is available, use the following imagemagick/graphicsmagick command: gm convert <image>.jpg -resize 960x -unsharp 2x0.5+0.7+0 -quality 98 <image>.png

Production deployment

Public key

Contact faris [ät] theluckybead.com or send a pull request to get your public key placed in the production repo.

Pushing to prod

Once your public key is added to the repo, add the production repo to your remote as follows:

git remote add production [email protected]:slcpy.com.git

Then you can push to the repo via:

git push origin master && git push production master

The app server will reboot and run collectstatic -l to link up static files.

slcpy.com's People

Contributors

earthastronaut 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.