Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/marioidival/iampharaoh
I am Pharaoh is scaffold create to Django users which are starting with Pyramid.
https://github.com/marioidival/iampharaoh
Last synced: about 2 months ago
JSON representation
I am Pharaoh is scaffold create to Django users which are starting with Pyramid.
- Host: GitHub
- URL: https://github.com/marioidival/iampharaoh
- Owner: marioidival
- License: mit
- Created: 2014-10-31T00:11:34.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-03-10T02:51:03.000Z (almost 10 years ago)
- Last Synced: 2024-10-11T17:44:07.282Z (2 months ago)
- Language: Python
- Homepage:
- Size: 188 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
#I am Pharaoh
**I am Pharaoh** is scaffold create to Django users which are starting with [Pyramid](http://docs.pylonsproject.org/en/latest/).
### Install:
pip install iampharaoh
After, verify your scaffold's:
pcreate -l
Result:
Available scaffolds:
alchemy: Pyramid SQLAlchemy project using url dispatch
pharaohapps: Create an 'app' in project. - Like startapp Django
pharaohproject: Scaffold created for Django users initiate with Pyramid more comfortably
starter: Pyramid starter project
zodb: Pyramid ZODB project using traversalOnly **pharaohapps** and **pharaohproject** are created by **I am Pharaoh**, others are default in Pyramid
### How to:
After install **I am Pharaoh**, start a new project
pcreate -s pharaohproject nameOfProject
The result in nameOfProeject folder is:
├── LICENSE
├── MANIFEST.in
├── README
├── nameOfProject
│ ├── __init__.py
│ ├── nameOfProject
│ │ ├── __init__.py
│ │ ├── base_model.py
│ │ └── urls.py
│ ├── scripts
│ │ ├── __init__.py
│ │ ├── destroydb.py
│ │ └── initializedb.py
│ └── static
├── development.ini
├── production.ini
├── setup.cfg
└── setup.pySo, run in you project:
python setup.py develop
This command will download some packages, but the most significant for Django users are:
* [SQLAlchemy](http://www.sqlalchemy.org): The Python SQL Toolkit and Object Relational Mapper.
* [Alembic](http://alembic.readthedocs.org/en/latest/): Migrations.
* [WTForms-Alchemy](https://wtforms-alchemy.readthedocs.org/en/latest/): Forms and ModelForm.
* [pyramid_jinja2](https://github.com/Pylons/pyramid_jinja2): Template Engine.### Create App
Whitin your project (Like Django):pcreate -s pharaohapps nameOfApp
The result in nameOfProeject folder now is:
├── LICENSE
├── MANIFEST.in
├── README
├── nameOfProject
│ ├── __init__.py
│ ├── nameOfProject
│ │ ├── __init__.py
│ │ ├── base_model.py
│ │ └── urls.py
│ ├── nameOfApp -> add after run last command
│ │ ├── __init__.py
│ │ ├── models.py
│ │ ├── templates
│ │ │ └── index.html
│ │ ├── urls.py
│ │ └── views.py
│ ├── scripts
│ │ ├── __init__.py
│ │ ├── destroydb.py
│ │ └── initializedb.py
│ └── static
├── development.ini
├── production.ini
├── setup.cfg
└── setup.pyTo connect app in project:
# nameOfProject/urls.py
config.include("nameOfProject.nameOfApp.urls")