This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<meta name="description" content="Random, interesting thoughts, quotes, videos, links, articles and other randoms stuff - gathered by a specific set of geeky people..." /> | |
<meta name="copyright" content="All content on this site including its code and design are http://creativecommons.org/licenses/by-sa/3.0/ unless otherwise specified. Posted or linked to content is copyright its original creator." /> | |
<meta name="keywords" content="lolz,roflcopter,wat,lool,narf,random,lollerskates,lmaobbqs,,funny,crap,64801,Joplin,Joplin mo" /> | |
<link rel="Shortcut Icon" href="favicon.gif" type="image/x-icon" /> | |
<link rel="icon" href="favicon.gif" type="image/png" /> | |
<title>uGotOwned || Trendsettlers in the world of random</title> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* clearly, a good choice */ | |
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td{margin:0;padding:0;border:0;outline:0;font-size:100%;background:transparent;vertical-align:baseline;}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:'';content:none}:focus{outline:0}ins{text-decoration:none}del{text-decoration:line-through}table{border-collapse:collapse;border-spacing:0} | |
body, html { font-family:Verdana, Geneva, sans-serif; color:#333; background:url(http://ugotowned.com/images/bg-loop.gif) #399e41 repeat-y right ;} | |
a { color:#44af4c;} | |
a:hover { color:#449faf;} | |
#container {float: right; width:960px; } | |
#header {background:url(http://ugotowned.com/images/header-loop.gif) repeat-x bottom #fff; min-height:280px |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.conf.urls.defaults import * | |
# Uncomment the next two lines to enable the admin: | |
from django.contrib import admin | |
admin.autodiscover() | |
urlpatterns = patterns('', | |
(r'^admin/', include(admin.site.root)), | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create your views here. | |
from django.http import HttpResponse | |
from django.shortcuts import render_to_response | |
from django.views.generic.list_detail import object_detail, object_list | |
from djangorestaurant.menu.models import * | |
def item_list(request, page=0, paginate_by=6, template_name='menu/list.html'): | |
items = Item.objects.all() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.conf.urls.defaults import * | |
# Uncomment the next two lines to enable the admin: | |
from django.contrib import admin | |
admin.autodiscover() | |
urlpatterns = patterns('', | |
(r'^admin/', include(admin.site.urls)), | |
(r'^item/$', 'menu.views.item_list'), | |
(r'^item/(?P<item_id>\d+)/$', 'menu.views.item_detail'), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.http import HttpResponse | |
from django.shortcuts import render_to_response | |
from django.template import RequestContext | |
from djangorestaurant.menu.models import Item,Menu,Price,Section,Special,Special_Drink | |
from djangorestaurant.event.models import Event | |
from djangorestaurant.ad.models import Ad | |
from djangorestaurant.gallery.models import Billboard | |
def menu_list(request): | |
"Display a list of all active menus." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.conf import settings | |
# Uncomment the next two lines to enable the admin: | |
from django.contrib import admin | |
admin.autodiscover() | |
urlpatterns = patterns('', | |
(r'^admin/', include(admin.site.urls)), | |
(r'^$', 'menu.views.home_stuff'), | |
(r'^menus/$', 'menu.views.menu_list'), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM MODEL | |
class Item(models.Model): | |
title = models.CharField(max_length=128) | |
photo = models.ImageField(upload_to="photos/",null=True, blank=True,) | |
description = models.TextField(null=True, blank=True,) | |
section = models.ForeignKey(Section) | |
order = models.IntegerField(null=True, blank=True,) | |
creation_date = models.DateTimeField(auto_now_add=True) | |
last_modified = models.DateTimeField(auto_now=True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Item(models.Model): | |
title = models.CharField(max_length=128) | |
photo = models.ImageField(upload_to="photos/",null=True, blank=True,) | |
description = models.TextField(null=True, blank=True,) | |
section = models.ForeignKey(Section) | |
order = models.IntegerField(null=True, blank=True,) | |
creation_date = models.DateTimeField(auto_now_add=True) | |
last_modified = models.DateTimeField(auto_now=True) | |
active = models.CharField(max_length=21, choices=ACTIVE_CHOICES,null=True, blank=True) | |
OlderNewer