Commit 120b5ef1 authored by okhin's avatar okhin 🚴
Browse files

Merge branch 'master' into 'feat_52'

# Conflicts:
#   bt/
#   nnmon/
parents 937ea70a e67ab765
......@@ -14,6 +14,8 @@ uwsgi.
You need to install some development package to activate al the needed python
On Debian or Ubuntu, this will be done with the following command:
sudo apt-get install libxml2-dev libxslt-dev build-essential python-dev libsqlite3-dev libjpeg-dev zlib1g-dev libapache2-mod-uwsgi libapache2-mod-wsgi uwsgi-plugin-python libfreetype6-dev uwsgi
## Create a virtualenv
......@@ -28,7 +30,7 @@ application from there.
You need to git clone the repository:
git clone http:/ respect-my-net
git clone respect-my-net
## Install the module dependencies
......@@ -54,8 +56,8 @@ To run server, just do:
## Set-up uwsgi
You need to create an application for uwsgi. Create a file in
/etc/uwsgi/apps-available with the fllowing content. Adapat to your needs and
read the documentation:
`/etc/uwsgi/apps-available` with the following content. Adapt to your needs
and read the documentation:
plugins = python
......@@ -79,7 +81,7 @@ repository), chdir is the same path. Home, is the path of the virtualenv created
Now you need to activate the apps by creating a symoblic link into
/etc/uwsgi/apps-enabled, and to restart uwsgi.
`/etc/uwsgi/apps-enabled`, and to restart uwsgi.
cd /etc/uwsgi/apps-enabled
ln -s ../apps-available/nnmond.conf
......@@ -94,7 +96,7 @@ need to actvivate the uwsgi module:
service apache2 restart
And now you need to create a VirtualHost in
<virtualhost *:80>
......@@ -114,4 +116,3 @@ production use, you should use a TLS VirtualHost.
a2ensite nnmon
service apache2 reload
from django.contrib import admin
from django.contrib.admin import AdminSite
from bt import models
class CommentInline(admin.TabularInline):
......@@ -8,7 +6,7 @@ class CommentInline(admin.TabularInline):
max_num = 1
class ViolationAdmin(admin.ModelAdmin):
list_display = ('state', 'country', 'operator', 'contract', 'resource_name', 'media', 'activationid', 'old')
list_display = ('state', 'country', 'operator', 'contract', 'resource_name', 'media', 'activationid', 'old', 'creation_date')
list_filter = ('state', 'operator_ref', 'contract', 'resource_name', 'media', 'country', 'old')
inlines = [CommentInline, ], ViolationAdmin)
......@@ -36,8 +34,3 @@ class OperatorAdmin(admin.ModelAdmin):
search_fields = ('name', )
pass, OperatorAdmin)
\ No newline at end of file
class ManagerSite(AdminSite):
site_header = 'Manager Site'
manager_site = ManagerSite(name='manager')
from django import forms
from django.conf import settings
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import ugettext as _
from haystack.forms import SearchForm
from haystack.query import SearchQuerySet
from bt.models import Violation, COUNTRIES, RESOURCES, TYPES, MEDIA

22.5 KB | W: | H:


22.5 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin
......@@ -170,6 +170,7 @@
{% block footer %}
{% endblock %}
<div class="row">
......@@ -182,6 +183,7 @@
<script type="text/javascript" src="/static/js/tinymce/tinyMCE/tinymce.min.js"></script>
<script type="text/javascript" src="/static/js/jquery.min.js"></script>
<script type="text/javascript" src="/static/js/jquery-ui.min.js"></script>
......@@ -135,7 +135,7 @@ $("#btn_dismiss").click(function(event) {
<input type="email" id="email-{{ }}" class="form-control" name="email" placeholder="Email"/>
<input type="hidden" id="id-{{ }}" value="{{ }}" />
<div class="btn-group" role="group" aria-label="confirm-deny">
<button class="btn btn-success">{% trans "OK" %}</ button>
<button class="btn btn-success">{% trans "OK" %}</button>
<button data-toggle="collapse" data-target="#info-{{}}" aria-expanded="false" aria-controls="info-{{ }}" type="button" class="btn btn-danger" >{% trans "Cancel" %}</button>
......@@ -226,7 +226,6 @@ $("#btn_dismiss").click(function(event) {
<p>{% trans "Those are cases that might be similar to yours, please feel free to add your input on those cases instead of adding yours if they overlap." %}</p>
<dl id="modal-list">
<div class="modal-footer">
<button type="button" id="btn_dismiss" class="btn btn-default" data-dismiss="modal">{% trans "Dismiss" %}</button>
......@@ -2,11 +2,10 @@ from django.conf.urls import patterns, include, url
from django.views.generic import TemplateView, RedirectView
from django.conf import settings
from django.contrib import admin
from bt import views as bt
from bt.feeds import RssSiteNewsFeed, AtomSiteNewsFeed
from bt.api import APIResource, OperatorResource
from bt.admin import manager_site
api_resource = APIResource()
operator_api_resource = OperatorResource()
......@@ -85,9 +84,6 @@ urlpatterns = patterns('',
# Language switch
url(r'^i18n/', include('django.conf.urls.i18n')),
# Manager admin site
url(r'^manager/', manager_site.urls),
if settings.DEV_SERVER == True:
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment