Giter Site home page Giter Site logo

arpheno / eestecnet Goto Github PK

View Code? Open in Web Editor NEW
9.0 11.0 14.0 76.47 MB

The online platform for the Electrical Engineering Students' European Association

Home Page: https://test.eestec.net

License: Other

Python 62.94% HTML 8.10% CSS 1.33% JavaScript 27.09% Shell 0.55%

eestecnet's Introduction

Build Status Coverage Status

EESTECNET

Motivation

The motivation for creating this open source project is to provide an online platform for the Electrical Engineering Students' European Association (EESTEC). Its purpose is to serve as a central communication and administration hub for the association and preserve knowledge for future generations.

=============== Getting Started

Windows

The easiest way to get all dependencies is to install chocolatey from http://chocolatey.org/ Chocolatey is a package manager for Windows and works similar to apt on Debian or yum on rpm based linux distributions.

To do this, open an administrative command shell (cmd.exe) and copy&paste the following ::

@powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin

When it's done installing please type ::

choco install git virtualbox vagrant ssh

Alternativley install the dependencies manually and add them to your path.

Debian/Ubuntu

In a command shell do ::

sudo apt-get install git virtualbox vagrant

Development tools

I personally recommend the JetBrains PyCharm IDE. It is available for free as in beer for students.

Set up

Everything will run inside a virtual machine on your machine, with all dependencies and tools encapsulated in that machine. We use Vagrant to manage the virtualmachine. Depending on your machine the following steps to pull the project and set up for local development may take several minutes.

vagrant plugin install vagrant-reload
git clone http://github.com/arpheno/eestecnet/
vagrant up

When it finishes you should check localhost:8000 for a running instance of eestecnet, if you encouncter problems :

vagrant ssh
cd /vagrant/
sudo service supervisor stop
sudo killall python
python manage.py migrate
python manage.py createsuperuser
python manage.py runserver 0.0.0.0:8000

This will launch a local webserver on port 8000. The website will now display, albeit with no preloaded content

eestecnet's People

Contributors

arpheno avatar blaz1 avatar geewid avatar lintaba avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

eestecnet's Issues

Add links to sidenav

Currently its just a list to items.
We need to implement links to the different parts of the page.

Can't open Event in Admin Panel

MultipleObjectsReturned at /adminevents/event/192/
get() returned more than one Event -- it returned 4!
Request Method: GET
Request URL: http://eestec.net/adminevents/event/192/
Django Version: 1.7.3
Exception Type: MultipleObjectsReturned
Exception Value:
get() returned more than one Event -- it returned 4!
Exception Location: /var/www/unstable/local/lib/python2.7/site-packages/django/db/models/query.py in get, line 361
Python Executable: /var/www/unstable/bin/python
Python Version: 2.7.3
Python Path:
['/var/www/unstable/eestecnet',
'/var/www/unstable/bin',
'/var/www/unstable/local/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg',
'/var/www/unstable/local/lib/python2.7/site-packages/pip-1.1-py2.7.egg',
'/var/www/unstable/lib/python2.7',
'/var/www/unstable/lib/python2.7/plat-linux2',
'/var/www/unstable/lib/python2.7/lib-tk',
'/var/www/unstable/lib/python2.7/lib-old',
'/var/www/unstable/lib/python2.7/lib-dynload',
'/usr/lib/python2.7',
'/usr/lib/python2.7/plat-linux2',
'/usr/lib/python2.7/lib-tk',
'/var/www/unstable/local/lib/python2.7/site-packages',
'/var/www/unstable/eestecnet']
Server time: Mon, 9 Mar 2015 12:08:49 +0000

Environment:

Request Method: GET
Request URL: http://eestec.net/adminevents/event/192/

Django Version: 1.7.3
Python Version: 2.7.3
Installed Applications:
('suit_redactor',
'suit',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'compressor',
'haystack',
'kombu.transport.django',
'djcelery',
'mailqueue',
'froala_editor',
'gunicorn',
'sorl.thumbnail',
'form_utils',
'reversion',
'corsheaders',
'djangular',
'rest_framework',
'apps.teams',
'apps.events',
'apps.account',
'apps.statistics',
'apps.gmapi',
'apps.password_reset',
'apps.news',
'apps.elfinder',
'apps.wiki',
'apps.feedback',
'apps.pages')
Installed Middleware:
('django.middleware.cache.UpdateCacheMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'corsheaders.middleware.CorsMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
'django.middleware.cache.FetchFromCacheMiddleware')

Traceback:
File "/var/www/unstable/local/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response

  1.                 response = wrapped_callback(request, _callback_args, *_callback_kwargs)
    
    File "/var/www/unstable/local/lib/python2.7/site-packages/django/contrib/admin/options.py" in wrapper
  2.             return self.admin_site.admin_view(view)(_args, *_kwargs)
    
    File "/var/www/unstable/local/lib/python2.7/site-packages/django/utils/decorators.py" in _wrapped_view
  3.                 response = view_func(request, _args, *_kwargs)
    
    File "/var/www/unstable/local/lib/python2.7/site-packages/django/views/decorators/cache.py" in _wrapped_view_func
  4.     response = view_func(request, _args, *_kwargs)
    
    File "/var/www/unstable/local/lib/python2.7/site-packages/django/contrib/admin/sites.py" in inner
  5.         return view(request, _args, *_kwargs)
    
    File "/var/www/unstable/local/lib/python2.7/site-packages/django/contrib/admin/options.py" in change_view
  6.     return self.changeform_view(request, object_id, form_url, extra_context)
    
    File "/var/www/unstable/local/lib/python2.7/site-packages/django/utils/decorators.py" in _wrapper
  7.         return bound_func(_args, *_kwargs)
    
    File "/var/www/unstable/local/lib/python2.7/site-packages/django/utils/decorators.py" in _wrapped_view
  8.                 response = view_func(request, _args, *_kwargs)
    
    File "/var/www/unstable/local/lib/python2.7/site-packages/django/utils/decorators.py" in bound_func
  9.             return func.**get**(self, type(self))(_args2, *_kwargs2)
    
    File "/var/www/unstable/local/lib/python2.7/site-packages/django/db/transaction.py" in inner
  10.             return func(_args, *_kwargs)
    
    File "/var/www/unstable/local/lib/python2.7/site-packages/django/contrib/admin/options.py" in changeform_view
  11.         obj = self.get_object(request, unquote(object_id))
    
    File "/var/www/unstable/local/lib/python2.7/site-packages/django/contrib/admin/options.py" in get_object
  12.         return queryset.get(pk=object_id)
    
    File "/var/www/unstable/local/lib/python2.7/site-packages/django/db/models/query.py" in get
  13.             num if num <= MAX_GET_RESULTS else 'more than %s' % MAX_GET_RESULTS
    

Exception Type: MultipleObjectsReturned at /adminevents/event/192/
Exception Value: get() returned more than one Event -- it returned 4!

Edit Permissions frontend

Add a field to all detail serializers indicating whether the current user may edit the serialized instance.

Cannot open admin/event manager

Cannot open admin/event manager

Environment:


Request Method: GET
Request URL: http://eestec.net/adminevents/event/173/

Django Version: 1.7.3
Python Version: 2.7.3
Installed Applications:
('suit_redactor',
 'suit',
 'django.contrib.admin',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'compressor',
 'haystack',
 'kombu.transport.django',
 'djcelery',
 'mailqueue',
 'froala_editor',
 'gunicorn',
 'sorl.thumbnail',
 'form_utils',
 'reversion',
 'corsheaders',
 'djangular',
 'rest_framework',
 'apps.teams',
 'apps.events',
 'apps.account',
 'apps.statistics',
 'apps.gmapi',
 'apps.password_reset',
 'apps.news',
 'apps.elfinder',
 'apps.wiki',
 'apps.feedback',
 'apps.pages')
Installed Middleware:
('django.middleware.cache.UpdateCacheMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'corsheaders.middleware.CorsMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'django.middleware.clickjacking.XFrameOptionsMiddleware',
 'django.middleware.cache.FetchFromCacheMiddleware')


Traceback:
File "/var/www/unstable/local/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
  111.                     response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/var/www/unstable/local/lib/python2.7/site-packages/django/contrib/admin/options.py" in wrapper
  583.                 return self.admin_site.admin_view(view)(*args, **kwargs)
File "/var/www/unstable/local/lib/python2.7/site-packages/django/utils/decorators.py" in _wrapped_view
  105.                     response = view_func(request, *args, **kwargs)
File "/var/www/unstable/local/lib/python2.7/site-packages/django/views/decorators/cache.py" in _wrapped_view_func
  52.         response = view_func(request, *args, **kwargs)
File "/var/www/unstable/local/lib/python2.7/site-packages/django/contrib/admin/sites.py" in inner
  206.             return view(request, *args, **kwargs)
File "/var/www/unstable/local/lib/python2.7/site-packages/django/contrib/admin/options.py" in change_view
  1456.         return self.changeform_view(request, object_id, form_url, extra_context)
File "/var/www/unstable/local/lib/python2.7/site-packages/django/utils/decorators.py" in _wrapper
  29.             return bound_func(*args, **kwargs)
File "/var/www/unstable/local/lib/python2.7/site-packages/django/utils/decorators.py" in _wrapped_view
  105.                     response = view_func(request, *args, **kwargs)
File "/var/www/unstable/local/lib/python2.7/site-packages/django/utils/decorators.py" in bound_func
  25.                 return func.__get__(self, type(self))(*args2, **kwargs2)
File "/var/www/unstable/local/lib/python2.7/site-packages/django/db/transaction.py" in inner
  394.                 return func(*args, **kwargs)
File "/var/www/unstable/local/lib/python2.7/site-packages/django/contrib/admin/options.py" in changeform_view
  1379.             obj = self.get_object(request, unquote(object_id))
File "/var/www/unstable/local/lib/python2.7/site-packages/django/contrib/admin/options.py" in get_object
  689.             return queryset.get(pk=object_id)
File "/var/www/unstable/local/lib/python2.7/site-packages/django/db/models/query.py" in get
  361.                 num if num <= MAX_GET_RESULTS else 'more than %s' % MAX_GET_RESULTS

Exception Type: MultipleObjectsReturned at /adminevents/event/173/
Exception Value: get() returned more than one Event -- it returned 16!

Team basic frontend functionality

We need to be able to create CRUD functionality for teams ( baseTeam) in the frontend.
Try to look at code from #28 and apply the same rationale to teams.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.