nitdgpos / festcms Goto Github PK
View Code? Open in Web Editor NEWFest management system using Django
Fest management system using Django
from
"YourAppName"
to
"festcms"
Add the section for newsletter/subscription to receive updates from the site mentioning what's new.
Add jquery 1.12.4 in festflow asset.
Download:
https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js
Then place it in festcms/festflow/static/js
defusedxml
is incompatible with python3.6
Environment:
Request Method: POST
Request URL: http://localhost:8000/admin/login/?next=/admin/
Django Version: 1.8
Python Version: 3.6.0
Installed Applications:
('django.contrib.sites',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'social.apps.django_app.default',
'festflow',
'ckeditor',
'ckeditor_uploader',
'forms_builder.forms',
'email_extras')
Installed Middleware:
('django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
'django.middleware.security.SecurityMiddleware')
Traceback:
File "/Users/nkprince007/Developer/opensource/festcms-env/lib/python3.6/site-packages/django/core/handlers/base.py" in get_response
132. response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/Users/nkprince007/Developer/opensource/festcms-env/lib/python3.6/site-packages/django/views/decorators/cache.py" in _wrapped_view_func
57. response = view_func(request, *args, **kwargs)
File "/Users/nkprince007/Developer/opensource/festcms-env/lib/python3.6/site-packages/django/contrib/admin/sites.py" in login
394. return login(request, **defaults)
File "/Users/nkprince007/Developer/opensource/festcms-env/lib/python3.6/site-packages/django/views/decorators/debug.py" in sensitive_post_parameters_wrapper
76. return view(request, *args, **kwargs)
File "/Users/nkprince007/Developer/opensource/festcms-env/lib/python3.6/site-packages/django/utils/decorators.py" in _wrapped_view
110. response = view_func(request, *args, **kwargs)
File "/Users/nkprince007/Developer/opensource/festcms-env/lib/python3.6/site-packages/django/views/decorators/cache.py" in _wrapped_view_func
57. response = view_func(request, *args, **kwargs)
File "/Users/nkprince007/Developer/opensource/festcms-env/lib/python3.6/site-packages/django/contrib/auth/views.py" in login
44. if form.is_valid():
File "/Users/nkprince007/Developer/opensource/festcms-env/lib/python3.6/site-packages/django/forms/forms.py" in is_valid
184. return self.is_bound and not self.errors
File "/Users/nkprince007/Developer/opensource/festcms-env/lib/python3.6/site-packages/django/forms/forms.py" in errors
176. self.full_clean()
File "/Users/nkprince007/Developer/opensource/festcms-env/lib/python3.6/site-packages/django/forms/forms.py" in full_clean
393. self._clean_form()
File "/Users/nkprince007/Developer/opensource/festcms-env/lib/python3.6/site-packages/django/forms/forms.py" in _clean_form
417. cleaned_data = self.clean()
File "/Users/nkprince007/Developer/opensource/festcms-env/lib/python3.6/site-packages/django/contrib/auth/forms.py" in clean
157. password=password)
File "/Users/nkprince007/Developer/opensource/festcms-env/lib/python3.6/site-packages/django/contrib/auth/__init__.py" in authenticate
66. for backend, backend_path in _get_backends(return_tuples=True):
File "/Users/nkprince007/Developer/opensource/festcms-env/lib/python3.6/site-packages/django/contrib/auth/__init__.py" in _get_backends
27. backend = load_backend(backend_path)
File "/Users/nkprince007/Developer/opensource/festcms-env/lib/python3.6/site-packages/django/contrib/auth/__init__.py" in load_backend
21. return import_string(path)()
File "/Users/nkprince007/Developer/opensource/festcms-env/lib/python3.6/site-packages/django/utils/module_loading.py" in import_string
26. module = import_module(module_path)
File "/Users/nkprince007/Developer/opensource/festcms-env/lib/python3.6/importlib/__init__.py" in import_module
126. return _bootstrap._gcd_import(name[level:], package, level)
File "/Users/nkprince007/Developer/opensource/festcms-env/lib/python3.6/site-packages/social/backends/google.py" in <module>
6. from social.backends.open_id import OpenIdAuth, OpenIdConnectAuth
File "/Users/nkprince007/Developer/opensource/festcms-env/lib/python3.6/site-packages/social/backends/open_id.py" in <module>
6. from openid.consumer.consumer import Consumer, SUCCESS, CANCEL, FAILURE
File "/Users/nkprince007/Developer/opensource/festcms-env/lib/python3.6/site-packages/openid/consumer/consumer.py" in <module>
196. from openid.consumer.discover import discover, OpenIDServiceEndpoint, \
File "/Users/nkprince007/Developer/opensource/festcms-env/lib/python3.6/site-packages/openid/consumer/discover.py" in <module>
22. from openid.yadis.etxrd import nsTag, XRDSError, XRD_NS_2_0
File "/Users/nkprince007/Developer/opensource/festcms-env/lib/python3.6/site-packages/openid/yadis/etxrd.py" in <module>
31. SafeElementTree = importSafeElementTree()
File "/Users/nkprince007/Developer/opensource/festcms-env/lib/python3.6/site-packages/openid/oidutil.py" in importSafeElementTree
83. return importElementTree(module_names)
File "/Users/nkprince007/Developer/opensource/festcms-env/lib/python3.6/site-packages/openid/oidutil.py" in importElementTree
106. ElementTree = __import__(mod_name, None, None, ['unused'])
File "/Users/nkprince007/Developer/opensource/festcms-env/lib/python3.6/site-packages/defusedxml/cElementTree.py" in <module>
16. from .ElementTree import DefusedXMLParser, _IterParseIterator
File "/Users/nkprince007/Developer/opensource/festcms-env/lib/python3.6/site-packages/defusedxml/ElementTree.py" in <module>
62. _XMLParser, _iterparse, _IterParseIterator, ParseError = _get_py3_cls()
File "/Users/nkprince007/Developer/opensource/festcms-env/lib/python3.6/site-packages/defusedxml/ElementTree.py" in _get_py3_cls
56. _IterParseIterator = pure_pymod._IterParseIterator
Exception Type: AttributeError at /admin/login/
Exception Value: module 'xml.etree.ElementTree' has no attribute '_IterParseIterator'
@nkprince007 should we upgrade?
The changes required that I am aware of is python-sicual-auth
The favicon in the address bar of About, Events, Sponsors page is not showing up. Though it does shows for the home page and Contact Us page.
There should be a model for talks that are a specitl type of event which requires name of the guest giving the talk. This model can extend the existing Event model.
implement it via model based design
Suggest title for address bar and change it accordingly. We can perhaps use different title for address bar in different pages. Mark this as a first-timers-only
issue
Sponsor name should be displayed in admin panel instead of "Sponsor Object"
Change the Sponsor model in models.py file to include a __str__
method like in other models.
Go to http://localhost:8000/admin/ page
Login as admin
Go to sponsors page.
In models file of festflow add a __str__
method to return the sponsor's name:
def __str__(self):
return self.name
In event_view template, currently "Event View" is diaplayed for every event.
This should be changed to display the name of the event.
In event_view template of festflow:
Change
<title>Event View</title>
To
<title>{{ event.name }}</title>
contactURL field should have blank=True and null=True parameters to make it optional.
TSIA
Use same navbar in all pages. Keep one navbar and remove all files associated with the other navbars.
Preferably with theming support of some kind.
Make a beautiful landing page.
When you launch the website via localhost:8000 it shows a blank white page. So you become clueless about what should be done. A proper description of the features should be written down along with how to create an admin user.
For an end user it is difficult to know what are the valid urls. So either display a dropdown with all the valid urls for navbar or show a list of elements that can be used in the navbar with pre-defined text.
The js is already included in the static assets.
Rename organizerMember
to OrganizerMember
Link to the change: https://github.com/NIT-dgp/festcms/blob/master/festflow/models.py#L115
python3 manage.py makemigrations
Use django-email-extras as the preferred mailing system.
To Do:
Change this line https://github.com/NIT-dgp/festcms/blob/master/festflow/models.py#L138
From 'sponsor' to 'Sponsor'
Then run python manage.py makemigrations
As of now, we don't have the README tell us about arch
, gentoo
, solus
and other distros.
spoiler alert ๐ there are some windows junkies out there too.
Identifiers are used in urls. So using a slugfield instead of custom regex will be better.
https://docs.djangoproject.com/en/1.10/ref/models/fields/#slugfield
So tasks are:
Change Event identifier https://github.com/NIT-dgp/festcms/blob/master/festflow/models.py#L20
Change Keynote identifier https://github.com/NIT-dgp/festcms/blob/master/festflow/models.py#L57
Change About identifier https://github.com/NIT-dgp/festcms/blob/master/festflow/models.py#L147
Change NewsLetter identifier https://github.com/NIT-dgp/festcms/blob/master/festflow/models.py#L160
Change Subscription identifier https://github.com/NIT-dgp/festcms/blob/master/festflow/models.py#L170
Change FAQ identifier https://github.com/NIT-dgp/festcms/blob/master/festflow/models.py#L187
Remove the regex: https://github.com/NIT-dgp/festcms/blob/master/festflow/models.py#L11
from
This is the Content management system of Ank 2016 - The Knowledge Fest of Maths N Tech club, NIT Durgapur. It is written in Django and uses basically a Bootstrap based UI.
to
This is a generic Content management system made specifically for the purpose of handling the websites of college fests. It is written in Django and uses basically a Bootstrap based UI.
PEP8Bear is giving exceptions. Further investigation is needed.
from
author='Your Name',
author_email='[email protected]'
to
author='Bishakh Ghosh',
author_email='[email protected]'
TSIA
The admin profile has to be logged out before viewing the event description of each event, or else an error is displayed.
remove it or change it completely CC @ghoshbishakh
Add a model for navbar entries and build a custom templatetag to display a navbar with those entries
from "OpenShiftApp"
to "A generic CMS for college fests."
In settings.py.example from urllib.parse import urlparse
should be commented as it is openshift specific setting.
Add bootstrap css, icons and js assets as static files under festflow
In urls.py of festflow the event page has a wrong comment.
# Contact Page
url(r'^events/$', views.events, name='events')
This should be commented as # Events Page
I am listing all design related issues here. Close this after each one is fixed
Possible design solutions can be discussed with issues before designing a page.
Keep an option for link for the sponsors apart from name and logo.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.