PageRenderTime 47ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/docs/pinax_starter_projects.md

https://gitlab.com/asmjahid/pinax
Markdown | 98 lines | 72 code | 26 blank | 0 comment | 0 complexity | 3b8e0c8619a555d892e37593891ae8b6 MD5 | raw file
  1. # Getting Started
  2. The `pinax/pinax-starter-projects` repo is available [here](https://github.com/pinax/pinax-starter-projects/).
  3. Many of the starter projects are derivatives of each other (`zero` is the parent of `account` among many
  4. others). We leverage `git` and branching to manage the hierarchy. Each project template lives in it's
  5. own branch and will branch from its natural parent.
  6. All starter projects share a common method for getting started. It involves creating a virtual environment, installing Django, and running the `startproject` command with a URL to the template, followed by a few commands within your new project. Or even easier, you can use the `pinax`
  7. command line utility.
  8. ## Getting Started
  9. ```
  10. pip install virtualenv
  11. virtualenv mysiteenv
  12. source mysiteenv/bin/activate
  13. ```
  14. You might use `pyenv` to manage the version of Python used in your virtualenv. See the [pyenv repository](https://github.com/yyuu/pyenv) for usage.
  15. ### Using the `pinax` command line utility
  16. ```
  17. pip install pinax-cli
  18. pinax projects # list available project releases
  19. pinax start <kind> <project_name>
  20. ```
  21. If you are feeling adventurous you can install off latest development by passing
  22. the `--dev` flag:
  23. ```
  24. pinax start --dev <kind> <project_name>
  25. ```
  26. ### Manually
  27. ```
  28. pip install Django
  29. django-admin.py startproject --template=https://github.com/pinax/pinax-starter-projects/zipball/<PROJECT_BRANCH> mysite -n webpack.config.js -n PROJECT_README.md
  30. ```
  31. ### Get Going With Your New Project
  32. ```
  33. cd mysite
  34. chmod +x manage.py
  35. pip install -r requirements.txt
  36. ./manage.py migrate
  37. ./manage.py loaddata sites
  38. ./manage.py runserver
  39. ```
  40. See each section below for the startproject url as well as any deviation from
  41. these common notes.
  42. Projects
  43. ----------
  44. * [zero](starter_project_list.md#pinax-project-zero)
  45. * [account](starter_project_list.md#pinax-project-account)
  46. * [documents](starter_project_list.md#pinax-project-documents)
  47. * [social-auth](starter_project_list.md#pinax-project-social-auth)
  48. * [wiki](starter_project_list.md#pinax-project-wiki)
  49. * [team-wiki](starter_project_list.md#pinax-project-team-wiki)
  50. * [blog](starter_project_list.md#pinax-project-blog)
  51. * [static](starter_project_list.md#pinax-project-static)
  52. * [waiting-list](starter_project_list.md#pinax-project-waiting-list)
  53. * `social`
  54. * `lms`
  55. * `forums`
  56. * `private-beta`
  57. * `symposion`
  58. Development
  59. ---------------
  60. If you want to develop your own starter projects here is the workflow you should
  61. follow:
  62. 1. Start with the branch you want to base your new project on.
  63. 2. `git co -b <name>`
  64. 3. Do the work on your project template
  65. 4. Test your project template by running `django-admin.py startproject --template=pinax-starter-projects test1 -n webpack.config.js -n PROJECT_README.md`
  66. 5. Once you are satisified with your testing, commit.
  67. 6. `git co master` and then update this `README.md` file with details about your new project
  68. 7. Update all descendent branches:
  69. ```
  70. ./update.sh
  71. git push
  72. ```