Commits

Anonymous committed 6ea7f19

new urls and view

  • Participants
  • Parent commits 19f9dc9

Comments (0)

Files changed (2)

sizechart/sizechart.tmproj

 <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
 <plist version="1.0">
 <dict>
+	<key>currentDocument</key>
+	<string>models.py</string>
 	<key>documents</key>
 	<array>
 		<dict>
 	<key>fileHierarchyDrawerWidth</key>
 	<integer>200</integer>
 	<key>metaData</key>
-	<dict/>
+	<dict>
+		<key>models.py</key>
+		<dict>
+			<key>caret</key>
+			<dict>
+				<key>column</key>
+				<integer>0</integer>
+				<key>line</key>
+				<integer>0</integer>
+			</dict>
+			<key>firstVisibleColumn</key>
+			<integer>0</integer>
+			<key>firstVisibleLine</key>
+			<integer>0</integer>
+		</dict>
+		<key>urls.py</key>
+		<dict>
+			<key>caret</key>
+			<dict>
+				<key>column</key>
+				<integer>41</integer>
+				<key>line</key>
+				<integer>4</integer>
+			</dict>
+			<key>firstVisibleColumn</key>
+			<integer>0</integer>
+			<key>firstVisibleLine</key>
+			<integer>0</integer>
+		</dict>
+		<key>views.py</key>
+		<dict>
+			<key>caret</key>
+			<dict>
+				<key>column</key>
+				<integer>0</integer>
+				<key>line</key>
+				<integer>4</integer>
+			</dict>
+			<key>columnSelection</key>
+			<false/>
+			<key>firstVisibleColumn</key>
+			<integer>0</integer>
+			<key>firstVisibleLine</key>
+			<integer>0</integer>
+			<key>selectFrom</key>
+			<dict>
+				<key>column</key>
+				<integer>2</integer>
+				<key>line</key>
+				<integer>15</integer>
+			</dict>
+			<key>selectTo</key>
+			<dict>
+				<key>column</key>
+				<integer>0</integer>
+				<key>line</key>
+				<integer>4</integer>
+			</dict>
+		</dict>
+	</dict>
+	<key>openDocuments</key>
+	<array>
+		<string>views.py</string>
+		<string>models.py</string>
+		<string>urls.py</string>
+	</array>
 	<key>showFileHierarchyDrawer</key>
 	<true/>
 	<key>windowFrame</key>

sizechart/views.py

 def brand_index(request, lang_slug):
 	language = get_object_or_404(Language, slug=lang_slug)  
 	return object_list(request, queryset=Brand.objects.order_by('name'),
-								template_name='brands/index.html', 
+								template_name='sizechart/brands/index.html', 
 								template_object_name="brand", 
 								extra_context={
 								'lang_slug': language.slug,
 		sizecharts = SizeChart.objects.filter(brands=brand).filter(language=language)
 	
 	return object_list(request, queryset=sizecharts.order_by('sort_order'),
-								template_name='brands/detail.html', 
+								template_name='sizechart/brands/detail.html', 
 								template_object_name="sizechart", 
 								extra_context={
 								'lang_slug': language.slug,