├── data └── .gitkeep ├── blog ├── __init__.py ├── migrations │ ├── __init__.py │ └── 0001_initial.py ├── context_processors.py ├── sitemap.py ├── managers.py ├── urls.py ├── admin.py ├── views.py ├── feeds.py ├── models.py ├── tests.py └── fixtures │ └── radpress_posts.json ├── people ├── __init__.py ├── migrations │ ├── __init__.py │ ├── 0003_auto_20150707_0943.py │ ├── 0002_auto_20150311_1220.py │ ├── 0001_initial.py │ └── 0004_auto_20191110_1009.py ├── admin.py ├── managers.py ├── urls.py ├── forms.py ├── templatetags │ └── people_extras.py ├── views.py ├── models.py └── tests.py ├── pyist ├── __init__.py ├── settings_local.py.dist ├── mixins.py ├── urls.py ├── wsgi.py └── settings.py ├── presentations ├── __init__.py ├── migrations │ ├── __init__.py │ ├── 0002_auto_20170713_2300.py │ └── 0001_initial.py ├── admin.py ├── urls.py ├── views.py ├── models.py ├── tests.py └── fixtures │ └── initial_data.json ├── static_files ├── js │ ├── main.js │ ├── html5shiv.js │ └── bootstrap.min.js ├── images │ ├── logo.png │ ├── favicon.ico │ ├── home-bg.jpeg │ ├── octocat.jpg │ ├── what-icon.png │ ├── contact-icon.png │ ├── fiber-papers.png │ ├── footer-logo.png │ ├── newsletter-icon.png │ └── logo.svg ├── fonts │ ├── FontAwesome.otf │ ├── fontawesome-webfont.eot │ ├── fontawesome-webfont.ttf │ ├── fontawesome-webfont.woff │ └── fontawesome-webfont.woff2 └── css │ ├── main.css │ └── font-awesome.min.css ├── tox.ini ├── .travis.yml ├── conf ├── gunicorn.py └── nginx.conf ├── fabenv.py.dist ├── templates ├── 404.html ├── flatpages │ └── default.html ├── base_page.html ├── people │ ├── person_form.html │ └── person_list.html ├── blog │ ├── blog_detail.html │ └── partials │ │ └── disqus.html ├── djangospam │ └── cookieform.html ├── presentations │ └── presentation_list.html ├── index.html └── base.html ├── Pipfile ├── manage.py ├── LICENSE ├── README.md ├── fabfile.py ├── .gitignore └── Pipfile.lock /data/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /blog/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /people/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /pyist/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /blog/migrations/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /presentations/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /people/migrations/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /presentations/migrations/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static_files/js/main.js: -------------------------------------------------------------------------------- 1 | $(document).ready(function(){}); 2 | -------------------------------------------------------------------------------- /pyist/settings_local.py.dist: -------------------------------------------------------------------------------- 1 | from pyist.settings import * 2 | 3 | DEBUG = True 4 | -------------------------------------------------------------------------------- /static_files/images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pyistanbul/website/HEAD/static_files/images/logo.png -------------------------------------------------------------------------------- /static_files/images/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pyistanbul/website/HEAD/static_files/images/favicon.ico -------------------------------------------------------------------------------- /static_files/images/home-bg.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pyistanbul/website/HEAD/static_files/images/home-bg.jpeg -------------------------------------------------------------------------------- /static_files/images/octocat.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pyistanbul/website/HEAD/static_files/images/octocat.jpg -------------------------------------------------------------------------------- /static_files/fonts/FontAwesome.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pyistanbul/website/HEAD/static_files/fonts/FontAwesome.otf -------------------------------------------------------------------------------- /static_files/images/what-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pyistanbul/website/HEAD/static_files/images/what-icon.png -------------------------------------------------------------------------------- /static_files/images/contact-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pyistanbul/website/HEAD/static_files/images/contact-icon.png -------------------------------------------------------------------------------- /static_files/images/fiber-papers.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pyistanbul/website/HEAD/static_files/images/fiber-papers.png -------------------------------------------------------------------------------- /static_files/images/footer-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pyistanbul/website/HEAD/static_files/images/footer-logo.png -------------------------------------------------------------------------------- /people/admin.py: -------------------------------------------------------------------------------- 1 | from django.contrib import admin 2 | 3 | from .models import Person 4 | 5 | 6 | admin.site.register(Person) 7 | -------------------------------------------------------------------------------- /static_files/images/newsletter-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pyistanbul/website/HEAD/static_files/images/newsletter-icon.png -------------------------------------------------------------------------------- /static_files/fonts/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pyistanbul/website/HEAD/static_files/fonts/fontawesome-webfont.eot -------------------------------------------------------------------------------- /static_files/fonts/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pyistanbul/website/HEAD/static_files/fonts/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /static_files/fonts/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pyistanbul/website/HEAD/static_files/fonts/fontawesome-webfont.woff -------------------------------------------------------------------------------- /static_files/fonts/fontawesome-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pyistanbul/website/HEAD/static_files/fonts/fontawesome-webfont.woff2 -------------------------------------------------------------------------------- /presentations/admin.py: -------------------------------------------------------------------------------- 1 | from django.contrib import admin 2 | 3 | from .models import Presentation 4 | 5 | 6 | admin.site.register(Presentation) 7 | -------------------------------------------------------------------------------- /blog/context_processors.py: -------------------------------------------------------------------------------- 1 | from django.conf import settings 2 | 3 | 4 | def export_blog_settings(request): 5 | return { 6 | 'BLOG_SETTINGS': settings.BLOG, 7 | } 8 | -------------------------------------------------------------------------------- /people/managers.py: -------------------------------------------------------------------------------- 1 | from django.db import models 2 | 3 | 4 | class PeopleManager(models.Manager): 5 | 6 | def active(self): 7 | return self.get_queryset().filter(is_active=True) 8 | -------------------------------------------------------------------------------- /people/urls.py: -------------------------------------------------------------------------------- 1 | from django.urls import path 2 | 3 | from .views import PeopleView 4 | 5 | app_name = "people" 6 | 7 | urlpatterns = [ 8 | path('', PeopleView.as_view(), name='index'), 9 | ] 10 | -------------------------------------------------------------------------------- /tox.ini: -------------------------------------------------------------------------------- 1 | [tox] 2 | envlist = py36, py37, py38 3 | skipsdist = True 4 | 5 | [testenv] 6 | deps = pipenv 7 | commands = 8 | pipenv install --dev 9 | pipenv run python manage.py test --verbosity 2 10 | -------------------------------------------------------------------------------- /presentations/urls.py: -------------------------------------------------------------------------------- 1 | from django.urls import path 2 | 3 | from .views import PresentationsView 4 | 5 | 6 | app_name = "presentations" 7 | 8 | urlpatterns = [ 9 | path('', PresentationsView.as_view(), name='index'), 10 | ] 11 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: python 2 | matrix: 3 | include: 4 | - python: 3.6 5 | env: TOXENV=py36 6 | - python: 3.7 7 | env: TOXENV=py37 8 | - python: 3.8 9 | env: TOXENV=py38 10 | install: pip install tox 11 | script: tox 12 | -------------------------------------------------------------------------------- /people/forms.py: -------------------------------------------------------------------------------- 1 | from django import forms 2 | 3 | from .models import Person 4 | 5 | 6 | class PersonForm(forms.ModelForm): 7 | class Meta: 8 | model = Person 9 | fields = ("name", "email", "blog_link", "twitter_username", 10 | "github_username") 11 | -------------------------------------------------------------------------------- /conf/gunicorn.py: -------------------------------------------------------------------------------- 1 | import multiprocessing 2 | 3 | 4 | bind = "127.0.0.1:9009" 5 | proc_name = "pyistanbul" 6 | workers = multiprocessing.cpu_count() * 2 + 1 7 | backlog = 2048 8 | debug = False 9 | daemon = True 10 | pidfile = "/tmp/" + proc_name + ".pid" 11 | logfile = "/tmp/" + proc_name + ".log" 12 | -------------------------------------------------------------------------------- /fabenv.py.dist: -------------------------------------------------------------------------------- 1 | from fabric.api import env 2 | 3 | env.hosts = ['berkerpeksag.com'] 4 | env.host = env.hosts[0] 5 | env.user = 'wakefield' 6 | env.password = '' 7 | env.project_name = 'pyistanbul' 8 | env.domain = 'pyistanbul.org' 9 | env.root = '/home/wakefield/' 10 | env.activate = 'source venv/bin/activate' 11 | -------------------------------------------------------------------------------- /blog/sitemap.py: -------------------------------------------------------------------------------- 1 | from django.contrib.sitemaps import Sitemap 2 | 3 | from .models import Post 4 | 5 | 6 | class BlogSitemap(Sitemap): 7 | changefreq = "never" 8 | priority = 0.9 9 | 10 | def items(self): 11 | return Post.objects.active() 12 | 13 | def lastmod(self, obj): 14 | return obj.updated_at 15 | -------------------------------------------------------------------------------- /blog/managers.py: -------------------------------------------------------------------------------- 1 | from django.db import models 2 | 3 | 4 | class BlogManager(models.Manager): 5 | 6 | def active(self): 7 | return super(BlogManager, self).get_queryset().filter( 8 | is_published=True) 9 | 10 | def passive(self): 11 | return super(BlogManager, self).get_queryset().filter( 12 | is_published=False) 13 | -------------------------------------------------------------------------------- /templates/404.html: -------------------------------------------------------------------------------- 1 | {% extends "base.html" %} 2 | 3 | {% block content %} 4 |
6 | Eğer bu hatayı almaya devam ederseniz lütfen 7 | https://github.com/pyistanbul/website/issues/new 8 | adresini kullanarak bizi haberdar edin. 9 |
10 | {% endblock %} 11 | -------------------------------------------------------------------------------- /templates/flatpages/default.html: -------------------------------------------------------------------------------- 1 | {% extends "base.html" %} 2 | {% load markitup_tags %} 3 | 4 | {% block title %}{{ flatpage.title }}{% endblock %} 5 | 6 | {% block content %} 7 |İstanbul'daki Python programcıları topluluğudur. Eğer Python ilginizi çekiyorsa siz de bu topluluğa katılabilirsiniz.
47 |Her gün Freenode'daki #pyistanbul kanalında buluşuyoruz.
51 |IRC'de ya da python-istanbul e-posta listesinde sorularınızı sorabilirsiniz.
55 |