This is the official website for Python Nigeria Conference
The project uses python3
specifically python3.6
-
Before cloning the repo, create a parent folder
-
clone the repo inside this folder just created
$ git clone https://github.com/pyung/pyconng.git pycon # ensure you switch to the develop branch $ git checkout develop
-
Create a virtual environment and activate it
$ python -m venv venv $ source venv\bin\activate # ensure the version of pip is 18.1 $ pip install pip==18.1 $ cd pycon # for window users > venv\Scripts\activate
-
Install all the dependencies for the project
(venv)$ pip install -r requirements/local.txt
-
Ensure you have Postgres database installed on your system. visit Postgres Download Section to download postgres for your respective OS
-
Create a database using the default
postgres
user and create a db namedpyconng
$ createdb pyconng
__This step isn't compulsory if you already have a database that you want to use or you are using
pgadmin3
to create the database. -
Setup an environmental variable to map the database configuration
export DATABASE_URL=postgres://<dbuser>:<dbpassword>@<dbhost>:<dbport>/pyconng # remember to set this environment variable export DJANGO_SETTINGS_MODULE=config.settings.local
-
Run migrations
python manage.py migrate
-
Run fixtures (one time only)
$ python manage.py loaddata fixtures/*
-
If everything above was successful, you can go ahead and start the server
$ python manage.py runserver_plus #there is a chance you might run into segfault with runsrver # if running on cloud9 python manage.py runserver $IP:$PORT
This is important to those who would be working on converting the mockups to actual html/css
$ cd design
$ npm install -g parcel-bundler
$ npm install #or yarn install if yarn is used
$ yarn start
The cloud9 url is at https://ide.c9.io/gbozee/pyconng
If you have found a bug or if you have a feature request, please report them at this repository issues section.
This project is licensed under the MIT license. See the LICENSE file for more info.