Skip to content

Commit

Permalink
continuing cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Ross Karchner committed Sep 14, 2011
1 parent e61c542 commit 15a2b62
Show file tree
Hide file tree
Showing 12 changed files with 19 additions and 57 deletions.
Empty file removed README
Empty file.
6 changes: 1 addition & 5 deletions app.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
application: techevents
version: newhomepage
version: cleanup
runtime: python
api_version: 1

Expand All @@ -15,10 +15,6 @@ handlers:
script: main.py
login: admin

- url: /links/review
script: main.py
login: admin

- url: .*
script: main.py

Expand Down
2 changes: 0 additions & 2 deletions appengine_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
use_library('django', '1.2')


from django.conf import settings
settings.ROOT_URLCONF="django_urls"



Expand Down
2 changes: 1 addition & 1 deletion events/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
from datetime import datetime

from sources.models import ICalendarSource
from apps.links.models import Link
from links.models import Link


@profile_required
Expand Down
2 changes: 1 addition & 1 deletion eventsite/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from google.appengine.api import users
from google.appengine.api.images import get_serving_url

from apps.links.models import Link
from links.models import Link



Expand Down
4 changes: 2 additions & 2 deletions links/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
urlpatterns = patterns('links.views',

url(r'^add/$','add', name="add_link"),
url(r'^review/$','review', name="review_links"),
url(r'^change/$','add', name="change_link"),
# url(r'^review/$','review', name="review_links"),
# url(r'^change/$','add', name="change_link"),


)
Expand Down
13 changes: 13 additions & 0 deletions links/views.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
from django.shortcuts import render_to_response, redirect
from django.http import HttpResponse, HttpResponseRedirect
from django.template import RequestContext
from django.contrib import messages

from account.utility import get_current_user, profile_required, get_current_profile

from eventsite import site_required


@site_required
def add(request):
return(render_to_response('links/add.html', locals(), context_instance=RequestContext(request)))
18 changes: 0 additions & 18 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,24 +19,6 @@



import logging
import django.core.signals
import django.dispatch.dispatcher
import django.db

def log_exception(*args, **kwds):
logging.exception('Exception in request:')

# Log errors.
django.dispatch.Signal.connect(
django.core.signals.got_request_exception, log_exception)

# Unregister the rollback event handler.
django.dispatch.Signal.disconnect(
django.core.signals.got_request_exception,
django.db._rollback_on_exception)



def main():
sys.path= [os.path.join(os.path.dirname(__file__), 'shared'), os.path.join(os.path.dirname(__file__), '.')]+sys.path
Expand Down
8 changes: 0 additions & 8 deletions migrate.py

This file was deleted.

19 changes: 0 additions & 19 deletions notes.txt

This file was deleted.

Binary file removed out.txt
Binary file not shown.
2 changes: 1 addition & 1 deletion settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@


TEMPLATE_DIRS = (
os.path.join(ROOT_PATH, 'django_templates')
os.path.join(ROOT_PATH, 'templates')
)


Expand Down

0 comments on commit 15a2b62

Please sign in to comment.