From a9c3d6ac574ce641840330841cb6e2110e35143b Mon Sep 17 00:00:00 2001 From: Karambir Singh Nain Date: Tue, 6 Aug 2013 23:21:02 +0530 Subject: [PATCH 01/18] integrated one mailchimp mailing list --- codesters/settings.py | 4 ++++ dev-requirements.txt | 1 + profiles/models.py | 5 +++++ 3 files changed, 10 insertions(+) diff --git a/codesters/settings.py b/codesters/settings.py index f9dc37b..70aebe3 100644 --- a/codesters/settings.py +++ b/codesters/settings.py @@ -26,6 +26,7 @@ ) THIRD_PARTY_APPS = ( + 'mailchimp', 'haystack', 'south', 'django_extensions', @@ -180,6 +181,9 @@ DISQUS_API_KEY = 'lTuOXBAfTK3symHWvi7cZHgcYipkL32BoSud7f0H4gl4lfVhVw0HCcbcmiu1rWJY' DISQUS_WEBSITE_SHORTNAME = 'codesters' +#MailChimp Settings +MAILCHIMP_API_KEY = '' + #Import Local and Prod settings try: from local_settings import * diff --git a/dev-requirements.txt b/dev-requirements.txt index 5160584..cce01d9 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -28,3 +28,4 @@ requests==1.2.3 simplejson==3.3.0 pyelasticsearch==0.5 django-haystack==2.0.0 +django-mailchimp-v1.3 diff --git a/profiles/models.py b/profiles/models.py index 11e2d12..9bceb1b 100644 --- a/profiles/models.py +++ b/profiles/models.py @@ -99,6 +99,11 @@ def create_user_profile(sender, user, request, **kwargs): assign_perm('delete_userprofile', user, user_profile) assign_perm('change_user', user, user) + #Subscribe user to codesters mailing list + import mailchimp + list = mailchimp.utils.get_connection().get_list_by_id('c9497f5882') + list.subscribe(user.email, {'EMAIL':user.email}) + def check_userprofile_details(sender, request, user, **kwargs): if not user.first_name: request.session['no_name'] = True From 48f8ad607bc2ecda5fd444199bd9918d550c709a Mon Sep 17 00:00:00 2001 From: Mohammad Adil Date: Wed, 7 Aug 2013 03:29:13 +0530 Subject: [PATCH 02/18] removed realtime signal processing of haystack search --- codesters/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codesters/settings.py b/codesters/settings.py index f9dc37b..98627d2 100644 --- a/codesters/settings.py +++ b/codesters/settings.py @@ -149,7 +149,7 @@ } #HAYSTACK settings -HAYSTACK_SIGNAL_PROCESSOR = 'haystack.signals.RealtimeSignalProcessor' +HAYSTACK_SIGNAL_PROCESSOR = 'haystack.signals.BaseSignalProcessor' HAYSTACK_SEARCH_RESULTS_PER_PAGE = 12 HAYSTACK_CONNECTIONS = { 'default': { From d68713b0917ab07a992e93007c96ddb3bb754e8b Mon Sep 17 00:00:00 2001 From: Karambir Singh Nain Date: Mon, 21 Oct 2013 00:44:08 +0530 Subject: [PATCH 03/18] project modules upgraded to current versions, using django 1.5.4 now --- .gitignore | 2 +- README.md | 2 +- codesters/settings.py | 2 +- dev-requirements.txt | 44 +++++++++++++++++++-------------------- gunicorn-example.conf.py | 2 ++ requirements.txt | 29 ++++++++++++++------------ templates/pagination.html | 4 ++-- 7 files changed, 45 insertions(+), 40 deletions(-) create mode 100644 gunicorn-example.conf.py diff --git a/.gitignore b/.gitignore index d8c3eed..8c7c1a7 100644 --- a/.gitignore +++ b/.gitignore @@ -6,4 +6,4 @@ codesters/prod_settings.py *.db assets/* media/* -gunicorn.conf.py +gunicorn-codesters.conf.py diff --git a/README.md b/README.md index a209f3b..1d6a1d1 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ We are developing knowledge library for learning programming. The best resources ##Tools/Apps Used -+ [Django 1.4.5](https://www.djangoproject.com/) ++ [Django 1.5.4](https://www.djangoproject.com/) + [Twitter Bootstrap](http://getbootstrap.com/) + [django-registration](https://django-registration.readthedocs.org/en/latest/) + [django-guardian](https://github.com/lukaszb/django-guardian) diff --git a/codesters/settings.py b/codesters/settings.py index f9dc37b..f93c6df 100644 --- a/codesters/settings.py +++ b/codesters/settings.py @@ -167,7 +167,7 @@ #Django-Registration Settings ACCOUNT_ACTIVATION_DAYS = 7 - +DEFAULT_FROM_EMAIL = "admin@codesters.org" #Django-Guardian Settings ANONYMOUS_USER_ID = -1 diff --git a/dev-requirements.txt b/dev-requirements.txt index 5160584..d26dc04 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -1,30 +1,30 @@ -Django==1.4.5 +Django==1.5.4 +Markdown==2.3.1 MySQL-python==1.2.4 PIL==1.1.7 -South==0.7.6 -amqp==1.0.11 +South==0.8.2 +amqp==1.3.0 anyjson==0.3.3 argparse==1.2.1 -billiard==2.7.3.28 -celery==3.0.19 -distribute==0.6.36 -django-braces==1.0.0 -django-celery==3.0.17 +billiard==3.3.0.0 +celery==3.0.24 +distribute==0.7.3 +django-braces==1.2.2 +django-celery==3.0.23 django-disqus==0.4.1 -django-extensions==1.0.3 -django-guardian +django-extensions==1.2.0 +django-guardian==1.1.1 +django-haystack==2.1.0 django-ratings==0.3.7 -django-registration==0.8 -django-widget-tweaks==1.1.2 -gunicorn==0.17.2 -ipython==0.13.1 -kombu==2.5.10 +django-registration==1.0 +django-widget-tweaks==1.3 +gunicorn==18.0 +ipython==1.0.0 +kombu==3.0.0 +pyelasticsearch==0.6 python-dateutil==2.1 -pytz==2013b -six==1.3.0 +pytz==2013.7 +requests==2.0.0 +simplejson==3.3.1 +six==1.4.1 wsgiref==0.1.2 -Markdown==2.3.1 -requests==1.2.3 -simplejson==3.3.0 -pyelasticsearch==0.5 -django-haystack==2.0.0 diff --git a/gunicorn-example.conf.py b/gunicorn-example.conf.py new file mode 100644 index 0000000..e69627d --- /dev/null +++ b/gunicorn-example.conf.py @@ -0,0 +1,2 @@ +bind = "127.0.0.1:8001" +workers = 2 diff --git a/requirements.txt b/requirements.txt index efc215b..56693b6 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,21 +1,24 @@ -Django==1.4.5 +Django==1.5.4 +Markdown==2.3.1 MySQL-python==1.2.4 PIL==1.1.7 -South==0.7.6 +South==0.8.2 anyjson==0.3.3 argparse==1.2.1 -distribute==0.6.36 -django-braces==1.0.0 +distribute==0.7.3 +django-braces==1.2.2 django-disqus==0.4.1 -django-extensions==1.0.3 -django-guardian +django-extensions==1.2.0 +django-guardian==1.1.1 +django-haystack==2.1.0 django-ratings==0.3.7 -django-registration==0.8 -django-widget-tweaks==1.1.2 -gunicorn==0.17.2 +django-registration==1.0 +django-widget-tweaks==1.3 +gunicorn==18.0 +ipython==1.0.0 +pyelasticsearch==0.6 python-dateutil==2.1 +requests==2.0.0 +simplejson==3.3.1 +six==1.4.1 wsgiref==0.1.2 -Markdown==2.3.1 -django-haystack==2.0.0 -pyelasticsearch==0.5 -requests==1.2.3 diff --git a/templates/pagination.html b/templates/pagination.html index 8f6b7dc..e7cdeea 100644 --- a/templates/pagination.html +++ b/templates/pagination.html @@ -7,7 +7,7 @@ {% else %} {% endif %}
  • @@ -19,7 +19,7 @@
  • {% else %} {% endif %} From 625b70a10d793c2799acd1fed02e85bdfb999007 Mon Sep 17 00:00:00 2001 From: Karambir Singh Nain Date: Mon, 21 Oct 2013 14:27:23 +0530 Subject: [PATCH 04/18] url from future tag removed from templates --- profiles/templates/profiles/base.html | 1 - profiles/templates/profiles/settings_base.html | 1 - profiles/templates/profiles/snippet_detail.html | 1 - profiles/templates/profiles/user_detail.html | 1 - profiles/templates/profiles/user_projects.html | 1 - profiles/templates/profiles/user_resources.html | 1 - profiles/templates/profiles/user_snippets.html | 1 - resources/templates/resources/rating.html | 1 - resources/templates/resources/resource_detail.html | 1 - resources/templates/resources/resource_form.html | 1 - resources/templates/resources/resource_home.html | 1 - resources/templates/resources/resource_list.html | 1 - resources/templates/resources/resource_type_nav.html | 1 - resources/templates/resources/single_resource_snippet.html | 1 - resources/templates/resources/topic_home.html | 1 - resources/templates/resources/topics.html | 1 - templates/about.html | 1 - templates/base.html | 1 - templates/coming_soon.html | 1 - templates/contact.html | 1 - templates/guidelines.html | 1 - templates/index.html | 1 - templates/registration/activation_complete.html | 2 +- templates/registration/login.html | 4 ++-- templates/registration/logout.html | 1 - templates/registration/registration_form.html | 1 - templates/search/base.html | 1 - templates/snippets/coming_soon_snippet.html | 1 - templates/snippets/footer.html | 1 - templates/snippets/navbar.html | 1 - 30 files changed, 3 insertions(+), 31 deletions(-) diff --git a/profiles/templates/profiles/base.html b/profiles/templates/profiles/base.html index d906b01..2b5a772 100644 --- a/profiles/templates/profiles/base.html +++ b/profiles/templates/profiles/base.html @@ -1,5 +1,4 @@ {% extends "base.html" %} -{% load url from future %} {% load active from codesters %} {% load gravatar %} diff --git a/profiles/templates/profiles/settings_base.html b/profiles/templates/profiles/settings_base.html index 3188827..5f61665 100644 --- a/profiles/templates/profiles/settings_base.html +++ b/profiles/templates/profiles/settings_base.html @@ -1,5 +1,4 @@ {% extends "base.html" %} -{% load url from future %} {% load active from codesters %} {% block content %} diff --git a/profiles/templates/profiles/snippet_detail.html b/profiles/templates/profiles/snippet_detail.html index 07b01cc..0b25e09 100644 --- a/profiles/templates/profiles/snippet_detail.html +++ b/profiles/templates/profiles/snippet_detail.html @@ -1,5 +1,4 @@ {% extends "base.html" %} -{% load url from future %} {% load disqus_tags %} {% load age from codesters %} {% load markup %} diff --git a/profiles/templates/profiles/user_detail.html b/profiles/templates/profiles/user_detail.html index 10d39ef..66a0133 100644 --- a/profiles/templates/profiles/user_detail.html +++ b/profiles/templates/profiles/user_detail.html @@ -1,5 +1,4 @@ {% extends "profiles/base.html" %} -{% load url from future %} {% load markup %} {% block meta_description %}{{ userinfo.get_full_name }} - {{ userinfo.userprofile.bio }}{% endblock %} diff --git a/profiles/templates/profiles/user_projects.html b/profiles/templates/profiles/user_projects.html index 4e3c3b5..f0fe421 100644 --- a/profiles/templates/profiles/user_projects.html +++ b/profiles/templates/profiles/user_projects.html @@ -1,5 +1,4 @@ {% extends "profiles/base.html" %} -{% load url from future %} {% load codesters %} {% block profile_content %} diff --git a/profiles/templates/profiles/user_resources.html b/profiles/templates/profiles/user_resources.html index 1dc5905..36c68dc 100644 --- a/profiles/templates/profiles/user_resources.html +++ b/profiles/templates/profiles/user_resources.html @@ -1,5 +1,4 @@ {% extends "profiles/base.html" %} -{% load url from future %} {% block profile_content %}
    diff --git a/profiles/templates/profiles/user_snippets.html b/profiles/templates/profiles/user_snippets.html index d5c7aef..43d5bfb 100644 --- a/profiles/templates/profiles/user_snippets.html +++ b/profiles/templates/profiles/user_snippets.html @@ -1,5 +1,4 @@ {% extends "profiles/base.html" %} -{% load url from future %} {% load codesters %} {% block profile_content %} diff --git a/resources/templates/resources/rating.html b/resources/templates/resources/rating.html index dbd8396..1fb7eb7 100644 --- a/resources/templates/resources/rating.html +++ b/resources/templates/resources/rating.html @@ -1,4 +1,3 @@ -{% load url from future %} {% load ratings %} {% rating_by_user user on resource.rating as vote %} {% if vote > 0 %} diff --git a/resources/templates/resources/resource_detail.html b/resources/templates/resources/resource_detail.html index 0cfaffd..150137d 100644 --- a/resources/templates/resources/resource_detail.html +++ b/resources/templates/resources/resource_detail.html @@ -1,6 +1,5 @@ {% extends "base.html" %} -{% load url from future %} {% load age issaved from codesters %} {% load disqus_tags %} {% load markup %} diff --git a/resources/templates/resources/resource_form.html b/resources/templates/resources/resource_form.html index 89e7453..d241562 100644 --- a/resources/templates/resources/resource_form.html +++ b/resources/templates/resources/resource_form.html @@ -1,5 +1,4 @@ {% extends "resources/base.html" %} -{% load url from future %} {% block resource_content %}

    Back diff --git a/resources/templates/resources/resource_home.html b/resources/templates/resources/resource_home.html index 8acecd5..d3eb5dd 100644 --- a/resources/templates/resources/resource_home.html +++ b/resources/templates/resources/resource_home.html @@ -1,5 +1,4 @@ {% extends "resources/base.html" %} -{% load url from future %} {% block head_title %}Resources - Select a topic to start learning{% endblock %} diff --git a/resources/templates/resources/resource_list.html b/resources/templates/resources/resource_list.html index 8e4c37f..65b18d6 100644 --- a/resources/templates/resources/resource_list.html +++ b/resources/templates/resources/resource_list.html @@ -1,5 +1,4 @@ {% extends "resources/base.html" %} -{% load url from future %} {% load check_active from codesters %} {% block resource_content %}

    diff --git a/resources/templates/resources/resource_type_nav.html b/resources/templates/resources/resource_type_nav.html index 1e78eec..9f63e01 100644 --- a/resources/templates/resources/resource_type_nav.html +++ b/resources/templates/resources/resource_type_nav.html @@ -1,4 +1,3 @@ -{% load url from future %} {% load check_active check_active_button from codesters %}
    diff --git a/resources/templates/resources/single_resource_snippet.html b/resources/templates/resources/single_resource_snippet.html index f23c641..2201929 100644 --- a/resources/templates/resources/single_resource_snippet.html +++ b/resources/templates/resources/single_resource_snippet.html @@ -1,4 +1,3 @@ -{% load url from future %} {% load age website issaved from codesters %}
  • diff --git a/resources/templates/resources/topic_home.html b/resources/templates/resources/topic_home.html index aca5d01..850d3d4 100644 --- a/resources/templates/resources/topic_home.html +++ b/resources/templates/resources/topic_home.html @@ -1,5 +1,4 @@ {% extends "resources/base.html" %} -{% load url from future %} {% load isfollow from codesters %} {% load markup %} diff --git a/resources/templates/resources/topics.html b/resources/templates/resources/topics.html index 53d8abe..9d32be9 100644 --- a/resources/templates/resources/topics.html +++ b/resources/templates/resources/topics.html @@ -1,5 +1,4 @@ {% load active from codesters %} -{% load url from future %} Add New Resource {% if user.is_staff %} diff --git a/templates/about.html b/templates/about.html index 9fd8a84..5f802bb 100644 --- a/templates/about.html +++ b/templates/about.html @@ -1,5 +1,4 @@ {% extends "base.html" %} -{% load url from future %} {% block content %}
    diff --git a/templates/base.html b/templates/base.html index 718a9ae..4a1f3f9 100644 --- a/templates/base.html +++ b/templates/base.html @@ -1,5 +1,4 @@ {% extends "bare_base.html" %} -{% load url from future %} {% block head_title %}{{ headline }}{% endblock head_title %} {% block body %} diff --git a/templates/coming_soon.html b/templates/coming_soon.html index 80c8746..96d0c00 100644 --- a/templates/coming_soon.html +++ b/templates/coming_soon.html @@ -1,5 +1,4 @@ {% extends "base.html" %} -{% load url from future %} {% block head_title %}Coming Soon{% endblock %} diff --git a/templates/contact.html b/templates/contact.html index d525b1c..fbcad56 100644 --- a/templates/contact.html +++ b/templates/contact.html @@ -1,5 +1,4 @@ {% extends "base.html" %} -{% load url from future %} {% block content %}
    diff --git a/templates/guidelines.html b/templates/guidelines.html index 0510d9c..4bc0fa2 100644 --- a/templates/guidelines.html +++ b/templates/guidelines.html @@ -1,5 +1,4 @@ {% extends "base.html" %} -{% load url from future %} {% block head_title %}Guidelines{% endblock %} {% block content %} diff --git a/templates/index.html b/templates/index.html index 8fe8ec2..d94707e 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,5 +1,4 @@ {% extends "base.html" %} -{% load url from future %} {% block content %}
    diff --git a/templates/registration/activation_complete.html b/templates/registration/activation_complete.html index e3887cb..375fee6 100644 --- a/templates/registration/activation_complete.html +++ b/templates/registration/activation_complete.html @@ -1,7 +1,7 @@ {% extends "registration/registration_base.html" %} {% block head_title %}Activation complete{% endblock %} {% block content %} -Thanks, activation complete! You may now login using the username and password you set at registration. +Thanks, activation complete! You may now login using the username and password you set at registration. {% endblock %} diff --git a/templates/registration/login.html b/templates/registration/login.html index 9bbe772..8915f26 100644 --- a/templates/registration/login.html +++ b/templates/registration/login.html @@ -3,7 +3,7 @@ {% block content %}
    -
    {% csrf_token %} +{% csrf_token %}

    Login to your account


    {% if form.errors %} @@ -13,7 +13,7 @@

    Login to your account

    {% endif %} {% include "snippets/forms/form_base.html" %} -

    Forgot your password? Reset it
    Need an new account? Register Here

    +

    Forgot your password? Reset it
    Need an new account? Register Here

    diff --git a/templates/registration/logout.html b/templates/registration/logout.html index e8f0206..91c7589 100644 --- a/templates/registration/logout.html +++ b/templates/registration/logout.html @@ -1,5 +1,4 @@ {% extends "registration/registration_base.html" %} -{% load url from future %} {% block head_title %}Logged out{% endblock %} {% block content %}

    Successfully logged out!

    diff --git a/templates/registration/registration_form.html b/templates/registration/registration_form.html index 6411c27..7a2ce6e 100644 --- a/templates/registration/registration_form.html +++ b/templates/registration/registration_form.html @@ -1,5 +1,4 @@ {% extends "registration/registration_base.html" %} -{% load url from future %} {% block head_title %}Register for an account{% endblock %} {% block content %}
    diff --git a/templates/search/base.html b/templates/search/base.html index 26d97b3..dc4fb23 100644 --- a/templates/search/base.html +++ b/templates/search/base.html @@ -1,5 +1,4 @@ {% extends "bare_base.html" %} -{% load url from future %} {% block head_title %}Search{% endblock head_title %} {% block body %} diff --git a/templates/snippets/coming_soon_snippet.html b/templates/snippets/coming_soon_snippet.html index 80f6c81..c21bc35 100644 --- a/templates/snippets/coming_soon_snippet.html +++ b/templates/snippets/coming_soon_snippet.html @@ -1,4 +1,3 @@ -{% load url from future %}

    Coming Soon

    We are actively developing this website. Soon you will be able to see this content. Till then browse other features...

    or Learn more about us and our plans.

    diff --git a/templates/snippets/footer.html b/templates/snippets/footer.html index ec5d51a..9709954 100644 --- a/templates/snippets/footer.html +++ b/templates/snippets/footer.html @@ -1,4 +1,3 @@ -{% load url from future %}
  • Twitter
  • {% endif %} {% if userinfo.userprofile.stackoverflow %}
  • Stackoverflow
  • {% endif %} {% if userinfo.userprofile.facebook %}
  • Facebook
  • {% endif %} - -
  • Rss
  • -
  • Atom
  • @@ -42,8 +34,6 @@ - {% if user.is_staff %} -
  • Manage
  • - {% endif %} {% else %}
  • Login
  • Register
  • From bd041c3d336fb868c11d61d8398dc8035da889e0 Mon Sep 17 00:00:00 2001 From: Karambir Singh Nain Date: Mon, 21 Oct 2013 17:17:46 +0530 Subject: [PATCH 07/18] flatpages app added for site wide static pages --- codesters/settings.py | 1 + codesters/urls.py | 16 +++++++++++++--- templates/about.html | 28 ---------------------------- templates/coming_soon.html | 10 ---------- templates/contact.html | 10 ---------- templates/flatpages/default.html | 5 +++++ templates/guidelines.html | 6 ------ templates/snippets/footer.html | 9 ++++++--- 8 files changed, 25 insertions(+), 60 deletions(-) delete mode 100644 templates/about.html delete mode 100644 templates/coming_soon.html delete mode 100644 templates/contact.html create mode 100644 templates/flatpages/default.html delete mode 100644 templates/guidelines.html diff --git a/codesters/settings.py b/codesters/settings.py index b9bd188..335a2bf 100644 --- a/codesters/settings.py +++ b/codesters/settings.py @@ -23,6 +23,7 @@ 'django.contrib.admin', 'django.contrib.sitemaps', 'django.contrib.markup', + 'django.contrib.flatpages', ) THIRD_PARTY_APPS = ( diff --git a/codesters/urls.py b/codesters/urls.py index dc06680..13b5516 100644 --- a/codesters/urls.py +++ b/codesters/urls.py @@ -12,9 +12,6 @@ urlpatterns = patterns('', url(r'^$', HomeView.as_view(), name='page_home'), - url(r'^about/$', AboutView.as_view(), name='page_about'), - url(r'^contact/$', ContactView.as_view(), name='page_contact'), - url(r'^guidelines/$', GuidelinesView.as_view(), name='page_guidelines'), url(r'^explore/$', explore_home, name='explore_home'), url(r'^admin/$', RedirectView.as_view(url='/', permanent=True)), url(r'^explore/resource/all/$', RecentResourceListView.as_view(), name='explore_recent_resources'), @@ -36,3 +33,16 @@ urlpatterns += patterns('', (r'^sitemap\.xml$', 'django.contrib.sitemaps.views.sitemap', {'sitemaps': sitemaps}), ) + + +urlpatterns += patterns('django.contrib.flatpages.views', + url(r'^about/$', 'flatpage', {'url': '/about/'}, name='page_about'), + url(r'^contact/$', 'flatpage', {'url': '/contact/'}, name='page_contact'), + url(r'^guidelines/$', 'flatpage', {'url': '/guidelines/'}, name='page_guidelines'), + url(r'^license/$', 'flatpage', {'url': '/license/'}, name='page_license'), +) + +#Left for future, if needs to make many flatpages +#urlpatterns += patterns('', +# url(r'pages/', include('django.contrib.flatpages.urls')), +#) diff --git a/templates/about.html b/templates/about.html deleted file mode 100644 index 5f802bb..0000000 --- a/templates/about.html +++ /dev/null @@ -1,28 +0,0 @@ -{% extends "base.html" %} - -{% block content %} -
    -

    About Us

    -

    We have actually made this website for us. We want to learn new things related to Computer Science. But what happens everytime is we waste much of our time in finding good resources to learn from.

    -

    This website aims to become a public library cum recommendation hub for learning. You want to learn programming or any computer science topic. Search it in topics and you are good to go.

    - Get Started -
    -

    How we do it?

    -

    - We collect content across the web and submit it here. There is no crawler doing this. We hand picked these resources from our bookmarks and recommendations given by many people. -

    -

    - Then some initial rating is calculated and listed in the Resources Section under the appropriate category and topic. You can view resources according to their popularity and recent-ness. -

    -

    - Also each Topic has its own page explaining what it is and how it is used in real world. This gives only beginners a view about the topic and they can decide if they want to learn it or not. We are working on making this crowdsourced so that experts in the field can make it even better. -

    -

    - We are also working on forum(also evaluating hosted option) so that learners can ask questions easily. Even silly questions that get tagged unappropriate in Stack Overflow are welcome. For more Check out Guidelines Section to get a knowledge of functioning and our expectation from you. -

    -
    -

    I am a programmer

    -

    Share your knowledge, add resources which you think can help any person wanting to learn programming. If you are familier with Django, you can help us develop this project.

    - Codesters on Github -
    -{% endblock %} diff --git a/templates/coming_soon.html b/templates/coming_soon.html deleted file mode 100644 index 96d0c00..0000000 --- a/templates/coming_soon.html +++ /dev/null @@ -1,10 +0,0 @@ -{% extends "base.html" %} - -{% block head_title %}Coming Soon{% endblock %} - -{% block content %} -
    -

    We are actively developing this website. Soon you will be able to see this content. Till then browse other features...

    -

    or Learn more about us and our plans.

    -
    -{% endblock %} diff --git a/templates/contact.html b/templates/contact.html deleted file mode 100644 index fbcad56..0000000 --- a/templates/contact.html +++ /dev/null @@ -1,10 +0,0 @@ -{% extends "base.html" %} - -{% block content %} -
    -

    Contact Us

    -

    Have any suggestion or complaint?

    -

    Mail us at admin@codesters.org or send a tweet on twitter

    -

    We will get back to you as soon as possible :)

    -
    -{% endblock %} diff --git a/templates/flatpages/default.html b/templates/flatpages/default.html new file mode 100644 index 0000000..5970c96 --- /dev/null +++ b/templates/flatpages/default.html @@ -0,0 +1,5 @@ +{% extends "base.html" %} +{% block head_title %}{{ flatpage.title }}{% endblock head_title %} +{% block content %} +
    {{ flatpage.content }}
    +{% endblock content %} diff --git a/templates/guidelines.html b/templates/guidelines.html deleted file mode 100644 index 4bc0fa2..0000000 --- a/templates/guidelines.html +++ /dev/null @@ -1,6 +0,0 @@ -{% extends "base.html" %} - -{% block head_title %}Guidelines{% endblock %} -{% block content %} -

    Coming Soon

    -{% endblock %} diff --git a/templates/snippets/footer.html b/templates/snippets/footer.html index 9709954..c91a650 100644 --- a/templates/snippets/footer.html +++ b/templates/snippets/footer.html @@ -1,14 +1,16 @@