I should be suffering from severe sleep deficiency, but I have been stumped. I can not understand how to get the {% url%}
instruction to give the correct URL. So we start with the basics ..
import urls.py .shortcuts import from render_to_response import, import_list_or_404 import from django.template import requestontext to people.models import worker, OfficeLocation def employee_detail (request, id, template_name = none): "" "This will give you a complete detailed information based on the user's name . "" Person = employee. Gadgets (id = id) Returns Render_translation (template_name, _getDetail (person), context_instance = RequestContext (request))
Finally here my people / singles.html < Code> is a sample snippet. People / Single.html
& Lt; / Tr & gt; Now I can see that I am moving the right data back, for example, it is in a link that is in the code & lt ; Td width = "300px" & gt; Supervisor: & lt; A href = "// uid / 415 /" & gt; NAME & lt; / A & gt; & Lt; / Td> Now what I am doing .. I am missing the hostname of URL's name .. Can anyone tell me how < P> Grr .. It should be simple. I know that I am suffering from one lakh sleep. is a misnomer, and never gives a full (plan + hostname + port) part for that aspect of things, using you (usernames) and separating the domain, etc. To receive from Shayakata. Naming the method has raised enough eyebrows.
Popular posts from this blog
I have a big table to work with. I have to see that there are some records whose parent_id is equal to my passing value. Currently I do this by implementing "my_table using select count (*) where parent_id =: id"; If the result> 0, it means that they exist. Because this is a very large table, and I do not care what the actual number of records present, I just want to know if it exists, so I think count (*) Bit is disabled. How do I apply this requirement most quickly? I'm using Oracle 10. # Tips for Hibernation & amp; Tricks It suggests writing in such a way: Integer number = (integer) session .createQuery ("Select Count (*) to ...."). UniqueResult (); I do not know what is the magic of the unique rule? Why does it fast? To compare, select "1 from mytable where parent_id = passId and rowrum", which is more efficient? If you are not interested in the number of records, then there is an EXISTS query one: Select 'y'
Just ask someone to solve this problem? I want to create a multilevel menu I can not find the right solution generated with multilevel array, it always gets an array_push error My study came from the original idea But still my Can not match the need. This is my MySQL [code] ----- --------------------- --------------- | ID | PARENT_ID | Name | Link | Seq | 1 | 0 | Dashboad | Dashboard / | 1 | 2 | 0 | Menu 1 | Menu 1 / | 2 | 3 | 0 | Menu 2 | Menu 2 / | 3 | 4 | 0 | Menu 3 | Menu 3 / | 4 | 5 | 2 | Joint Add / | 1 | 6 | 3 | Joint Add / | 1 | 7 | 2 | Edit | Edit / | 2 | 8 | 4 | Joint Add / | 1 ------------------------------------------ [/ Code] I want to do something like this in my array array ('dashboard' = & gt; array ('id' = & gt; '' 'Dame' = & gt; 'Dashboard', 'Title' = & gt; 'Dashboard', 'MatchMin' = & gt; Base_URL (). 'Dashboard /', 'Active' => = & Gt; NULL), &
I am trying to change the format of the month that shows in the popup (not in the date that the picker actually I do not have any choice anywhere to do this, do I like to use a sub-string () or something else? What I normally display is Trying to change: Class = "ui-datepicker-title"> January & lt; / span & gt; ... & lt; / div & gt; Div>
|
Comments
Post a Comment