Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ This way is more Django oriented, and closer to how most apps are developed.
1. Make sure you've python 3.x installed on your machine (3.6 is preffered, but 3.4, 3.5 should do)
2. Create virtualenv using python3.6 and activate it.
3. `pip install -r requirements.txt`
5. `python pylight/manage.py migrate`
5. `SECRET_KEY=secret python pylight/manage.py migrate`
6. `SECRET_KEY=secret python pylight/manage.py runserver`
7. Visit `http://localhost:8000`
7. `SECRET_KEY=secret python pylight/manage.py loaddata pylight/meetups/fixtures/meetup.json` to load some test data, optionally
8. Visit `http://localhost:8000`



Expand All @@ -21,8 +22,9 @@ This way is closer to how our website is deployed and can catch more errors.
4. Install https://devcenter.heroku.com/articles/heroku-cli
5. `heroku local:run python pylight/manage.py migrate`
5. `heroku local:run python pylight/manage.py collectstatic` (if you're not running in DEBUG mode)
6. `heroku local` (adjust DEBUG as required)
7. Visit `http://localhost:5000`
6. `heroku local:run python pylight/manage.py loaddata pylight/meetups/fixtures/meetup.json` to load some test data, optionally
7. `heroku local` (adjust DEBUG as required)
8. Visit `http://localhost:5000`


## Common notes
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,10 @@ PyLight website source code. Visit us at [http://pylight.org](http://pylight.org
### About PyLight
PyLight is a beginner-friendly initiative. On our meetings we would like to focus on thorough explanation of programming foundations, showing different approaches in problem solving, and exploring different branches of IT world. Our meetings take place once a month and always include practical tasks apart from lectures. Feel free to join us anytime!

### How to contribute

For detailed description how to run this project locally see CONTRIBUTING.md
Pull requests are welcomed!

### Credits
Big thanks to [http://pywaw.org](PyWaw) for open-sourcing their website and for their support!
76 changes: 76 additions & 0 deletions pylight/meetups/fixtures/meetup.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
[
{
"pk": 1,
"model": "meetups.venue",
"fields": {
"name": "Atlantyda",
"address": "Pod morzem 1/1",
"longitude": "21.010258",
"latitude": "52.224403"
}
},
{
"pk": 1,
"model": "meetups.sponsor",
"fields": {
"name": "Sunscrapers",
"website": "http://sunscrapers.com/",
"logo": "pylight/static/img/sunscrapers.png",
"description": "Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate."
}
},
{
"pk": 1,
"model": "meetups.meetup",
"fields": {
"number": 1,
"date": "2027-06-26T18:30:00",
"sponsors": ["1"],
"venue": 1,
"is_ready": true,
"date_modified": "2017-06-18T00:30:00"
}
},
{
"pk": 1,
"model": "meetups.speaker",
"fields": {
"first_name": "Ananiasz",
"last_name": "Babasz",
"website": "https://www.abc.com",
"biography": "One morning, when Gregor Samsa woke from troubled dreams, he found himself transformed in his bed into a horrible vermin. He lay on his armour-like back, and if he lifted his head a little he could see his brown belly, slightly domed and divided by arches into stiff sections."
}
},
{
"pk": 2,
"model": "meetups.speaker",
"fields": {
"first_name": "John",
"last_name": "Doe",
"website": "http://test.com/",
"biography": "Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo."
}
},
{
"pk": 1,
"model": "meetups.talk",
"fields": {
"title": "Not so serious talk about baboons",
"description": "At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga.",
"speakers": ["1"],
"meetup": 1,
"order": 1
}
},
{
"pk": 2,
"model": "meetups.talk",
"fields": {
"title": "Very serious talk",
"description": "Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts. Separated they live in Bookmarksgrove right at the coast of the Semantics, a large language ocean. A small river named Duden flows by their place and supplies it with the necessary regelialia.",
"speakers": ["2"],
"meetup": 1,
"order": 2
}
}
]