Hello,
I have the following code:
///
b = Choice.objects.filter(choice=a.collection.id)
for cb in b:
discount_price = cb.price.name * Decimal(str(.75))
cb.price.name = discount_price
assert False, cb.price.name
///
Basically I'm just decreasing my price by 25%. How
point me in the right direction?
Thanks,
Greg
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe fro
from django.template.loader import get_template
t = get_template("editable_pages/test.html")
print t.nodelist.get_nodes_by_type(MyAppNode)
Cheers,
Greg
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Goo
> Or just read the code - that's what I did FWIW !-)
Tried that. In fact I'd actually tried the get_nodes_by_type method
and in hindsight I realise it failed for the reason below, but I
didn't realise that at the time.
> > One other slightly tricky thing that I just figured out - when
> > import
> Nice to know - but I really wonder why it works that way (I guess I'll
> have to look at this by myself). Perhaps would it be useful to
> document that somewhere (djangosnippets or the wiki ?)
I think so - had I known that was the problem it would have saved me a
number of hours. I'm not entire
h)
Does anyone have any ideas on what might be causing this? The form has
one image upload field, otherwise it's just select boxes and text
inputs.
Thanks in advance,
Greg
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Goog
e+mod_wsgi
Cheers,
Greg
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to
d
Hopefully I'm asking this question in the right place... feel free to
point me in the right direction if there's a better forum.
Regards,
Greg Brown
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Dja
> return django.views.generic.date_based.archive_index(
> request,
> queryset = set,
> template_name = 'search_results.html',
> extra_context = {'set': set}
> )
...
> I'm now getting the error:
>
> archive_inde
Cheers for your suggestion Alex, I'll look into nginx.
> How are you currently using mod_wsgi? Are you using embedded mode or
> daemon mode? Also, which Apache MPM are you using? Finally, do you
> have requirements to run crap like PHP on the same Apache?
Currently I do run php... would rather n
x27;t seem to be any out there.
Any thoughts?
Greg
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from
.handlers.wsgi import WSGIHandler
>
> os.environ['DJANGO_SETTINGS_MODULE'] = 'nzmusic.settings'
> os.environ['LD_LIBRARY_PATH'] = '/PATH/lib'
> application = WSGIHandler()
Thanks,
Greg
--~--~-~--~~~---~--~~
Hello,
I'm (almost) done coding up my blog in Django.
Right now I'm working to implement a search by date function. So my
class Post has a DateTimeField() called publish_date.
For the date search, I want to put two dropdown boxes on the web-page
so the users can pick a Month and Year and then it
ear=year,
> publish_date__month=month).
> -Justin
>
> On May 30, 12:34 am, greg wrote:
>
> > Hello,
>
> > I'm (almost) done coding up my blog in Django.
>
> > Right now I'm working to implement a search by date function. So my
> > class Post h
I have a large-ish query which is taking ~10 seconds to run, but I can
get it down to less than a second by changing the group by part of the
query from
GROUP BY `refunds_userprofile`.`ird_number` ,
`auth_user`.`first_name` , `auth_user`.`last_name` ,
`refunds_userprofile`.`user_id` , `auth_us
d setting lifts
and then sort them into a dictionary?
Thanks,
Greg Kerr
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, se
I am getting the bad charecter in group name error when using a form.
Environment:
Request Method: GET
Request URL: http://localhost:8000/search-form/
Django Version: 1.2.3
Python Version: 2.7.1
Installed Applications:
['django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessi
Shawn see below.
from django.conf.urls.defaults import *
from mysite.my_clts import views
#from mysite.books import views
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
(r'^my_clts/$', 'my_clts.views.index
Thanks for heading me in the right direction. I had several errors in
my urls.py.
On Feb 11, 11:46 am, Shawn Milochik wrote:
> Without testing it, I suspect the period in your 'request.GET' is the
> problem. Try replacing it with request_get and see what happens.
>
> Shawn
--
You received this
I've created a reusable view which allows for an extra_context argument,
see
https://github.com/gregplaysguitar/django-baseclasses/blob/master/baseclasses/views.py
+1 on this functionality being added to django itself though.
--
You received this message because you are subscribed to the Googl
Hi,
We have a setup where multiple domains via Apache's VirtualHost are
pointed to individual settings.py files using WSGI. Works great.
Each domain shares the same codebase and each domain has its own DB
specified in the settings file. Again, works great. Now the
problem. If I need to do a So
As a kind soul nicely pointed out to me elsewhere, I don't have a
problem. The migration history is DB specific, so simply run the
schemamigration using any settings file, then do the migrate with all
settings files. Doh!
It's been a long week.
On Mar 2, 3:55 pm, Greg wrote
> Now the only thing is that when I call p.choice_set.all() I don't get the
representation 'The sky' or 'Just Hacking again' . I receive choice object
itself. Is this normal?
It should be said that yes, that is normal. p.choice_set.all() is a list of
Choice objects, not a list of strings attrib
I've noticed a number of apparent session collisions (i.e., two or more
users getting the same session key and therefore each others session data)
on a site I manage. The site is on django 1.3.7, which shouldn't have any
issues with session key collisions (there were some in earlier django
vers
#x27;ll
post it there.
Thanks,
Greg
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-users+unsubscr...@googlegroups.com.
To post to this group, s
Hello,
I have the following list:
[, )>, , )>, , )>,
, )>, ,
)>]
In my view I want to be able to modify the Price of each element. I
want to times the price of each element by .9. Here is my code that
creates the above list:
s2 = b.sandp.order_by('orderdisplay')
I know that I can do 's2[0].p
sign to
function call' error.
On Dec 15, 9:12 pm, Ned Batchelder <[EMAIL PROTECTED]> wrote:
> for s in s2:
>s.price *= .9
>
> --Ned.
>
>
>
> Greg wrote:
> > Hello,
> > I have the following list:
>
> > [, )>, > Small'>, )
s.price is? In order to successfully do a
times I currently have to do the following 'int(str(s2[0].price)) * .
9'.
On Dec 16, 10:08 am, Forest Bond <[EMAIL PROTECTED]> wrote:
> Hi,
>
> On Sun, Dec 16, 2007 at 07:59:52AM -0800, Greg wrote:
> > I'v
= models.DecimalField(max_digits=6, decimal_places=2)
def __str__(self,):
return str(self.name)
///
On Dec 16, 11:56 am, Forest Bond <[EMAIL PROTECTED]> wrote:
> Hi,
>
> On Sun, Dec 16, 2007 at 08:37:08AM -0800, Greg wrote:
> > I
BTW s2[0].price * .9 would not
> have worked as well, because of the same reasons!
>
> On Dec 16, 11:08 pm, Greg <[EMAIL PROTECTED]> wrote:
>
> > Forest,
> > Here are my models
>
> > class Style(models.Model):
> > name = models.CharField(maxlength=200
Hello,
I have the following in my template:
{% for a in thespinfo %}
{{ secondprice.forloop.counter0|floatformat:2 }}
{% endfor %}
However, nothing appears when I run this code
///
My secondprice variable contians a list like ['25', '14', '56']. Each
time that my for loop is run t
dexError here.
> return list[index]
>
> Template side:
>
> {% get_element secondprice forloop.counter0 %}
>
> Regards,
> Martin Conte Mac Donell
>
>
>
>
>
> > On Dec 17, 2007 3:06 PM, Greg < [EMAIL PROTECTED]> wrote:
>
> > > Hello,
>
Hello,
I purchase a SSL for my website...https://mysite.com. Everything
works fine in IE. I can go to my site using both www.mysite.com and
mysite.com. When I add products to my cart
( request.session['cart'] )...I can view the contents of the cart
session variable when I access my secure site
Hedronist,
I've always heard that google doesn't like it when you have redirects
to your site. Will google pentalize me if I redirect all of my www.mysite.com
traffic to mysite.com?
On Dec 27, 12:37 pm, hedronist <[EMAIL PROTECTED]> wrote:
> The easiest way to deal with this problem is to not
Hedronist,
I know that google doesn't like redirects. Will this have an effect
on my search rankings? For example if google goes to www.mysite.com...will
google notice the redirect to mysite.com and pentalize me for it?
Thanks
On Dec 27, 12:37 pm, hedronist <[EMAIL PROTECTED]> wrote:
> The eas
Hello,
I orginially had my url like this:
(r'^(?P[\w-]+)/(?P[\w-]+)/$', 'showline')
Which would work fine when going to the url 'www.mysite.com/sprint/
cellphone/'
//
However, I want to change my url structure so that all of my pages are
as close to the root as possible. So I repl
ocgstyles,
I tried the following however I'm still getting a page not found
error:
(r'^(?P[a-zA-Z-]+)_(?P[\w-]+)/$', 'showline'),
On Jan 1, 8:23 pm, ocgstyles <[EMAIL PROTECTED]> wrote:
> Hi Greg,
>
> The problem is that "\w" is consuming the
;, showline),
>
> [views.py]
> def showline(request, manufacturer, line):
>return HttpResponse('manu = ' + manufacturer + 'line = ' +
> line)
>
> Maybe the error is being generated from somewhere else?
>
> On Jan 1, 9:42 pm, Greg <[EMAIL PROTECTED]>
> doesn't consume the underscores. So the new regex
>
> [a-zA-Z-]+
>
> will consume one or more letters or hyphens. The one I replaced it
> with should work for sprint-phone_cellphone.
>
> On Jan 1, 10:36 pm, Greg <[EMAIL PROTECTED]> wrote:
>
> > ocgstyl
pm, "Todd O'Bryan" <[EMAIL PROTECTED]> wrote:
> Have you added the app to your INSTALLED_APPS ?
>
> Maybe you should paste in your site's urls.py as well as the app's.
>
> On Jan 1, 2008 11:09 PM, Greg <[EMAIL PROTECTED]> wrote:
>
>
>
> >
ocgstyles,
Tried it...still no good
(r'^(?P[a-zA-Z]+)_(?P[a-zA-Z]+)/$', 'showline'),
On Jan 1, 11:23 pm, ocgstyles <[EMAIL PROTECTED]> wrote:
> I'm confused now too... :-/
>
> Try taking out the hyphen and see what happens...
>
> On Jan 1, 11:45
Hedronist,
Thanks for the reply. I tried your suggestion but it still doesn't
work. Thanks for the link. I'll look it over and hopefully be able
to solve the problem.
In regards to having all of my pages as close to the root as
possible. I was reading that search engines put more importance t
Hello,
I developed an AWESOME django website and everything works great
except for one MAJOR problem!!
I have the following models:
class Collection(models.Model):
name = models.CharField("Name", maxlength=200)
description = models.TextField(maxlength=1000, blank=True)
class Choice(mode
Hello,
I have a form submission where people can search by properties of my
product (color, size, price, etc...). We'll when they do a search a
bunch of products are returned. When they click on a product and then
try to click on the back button. In IE they receive an error:
'Webpage has expire
Hello,
I have a view that does some logic. Based on the result of that logic
I want to set a variable to True or False. I want to be able to
access this variable in a different view. I know that I can create a
new session variable and assign either True or False to it. However,
it there an eas
t;
wrote:
> Use the date filter:http://www.djangoproject.com/documentation/templates/#date
>
> On Mar 2, 11:57 am, Greg <[EMAIL PROTECTED]> wrote:
>
> > I'm querying a table in my db. Each record that gets returned
> > contains a DateField (the date it was created). I
I'm querying a table in my db. Each record that gets returned
contains a DateField (the date it was created). I'm able to show the
date in the template...however I want to change the format it's being
displayed as. In this case it's 2008-03-01. I want the date to show
Mar. 1 2008.
Thanks
--~
Date: {% a.date|date "jSo\f F" %}
> {% endfor %}
>
> which is explained on the previous link.
>
>
>
> On Sun, Mar 2, 2008 at 1:14 PM, Greg <[EMAIL PROTECTED]> wrote:
>
> > Alex,
> > I tried that however I get the following error: TemplateSyntaxError:
I look at it in the
template it shows the correct date '2008-03-01' (when i just use
{{ a.date }} ).
Thanks
On Mar 2, 1:37 pm, Daniel Roseman <[EMAIL PROTECTED]>
wrote:
> On 2 Mar, 18:45, Greg <[EMAIL PROTECTED]> wrote:
>
>
>
> > Justin,
&g
Hello,
My experience field by default gets displayed as a drop
down..everything works fine when it is displayed this way. However I
want the field to be displayed in my template as Radio Buttons. So I
added the line ' experience =
forms.CharField(widget=forms.RadioSelect) ' to my ModelClass.
How
]> wrote:
> On Thu, Mar 27, 2008 at 9:27 PM, Greg <[EMAIL PROTECTED]> wrote:
>
> > Hello,
> > My experience field by default gets displayed as a drop
> > down..everything works fine when it is displayed this way. However I
> > want the field to be displa
Hello,
I have the following field in my Order class:
payment = models.DecimalField("Payment Amount", max_digits=6,
decimal_places=2, blank=True, null=True)
As as example let's say I create a new Order and don't put anything in
the payment field. For some reason when I'm viewing Orders in the
Li
Thanks to everyone for the replies. Static content now makes sense to
me, and I have things up and working.
--greg
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this g
Hello,
I have a page on my site where customers can place their order. This
page is secure (https://). I'm finding that whenever some users click
click submit they are presented with a message saying:
//
Security alert you are about to be redirected to a connection that is
not secure.
The inf
Hello,
I'm trying to use ModelForm to create a form based on one of my
models. However, I'm getting the following error:
///
AttributeError at /plush/theone/
'ModelFormOptions' object has no attribute 'many_to_many'
///
Below is my code:
///
Views.py File
def theone(request):
a = TestForm
Hello,
Quick question for ya. For some reason I don't know how to make a OR
statment: Below is my code:
def Order(models.Model):
order_status = models.CharField(max_length=2,
choices=ORDER_STATUS, blank=True)
def save(self):
if self.order_status == 3 or 4 (??)
//
Hello,
I already have about 100 records in my db table. I'm currently going
to add a date field to my model.
///
mydate = models.DateField(blank=True, null=True)
///
I have a save method for my class where i check to see if my 'mydate'
field has a value.
///
if self.mydate == None:
Karen,
Here is the error that I'm getting:
//
Enter a valid date in -MM-DD format.
//
I'm using SQLite
Not sure what version of django I'm using. I did an svnup about a
month ago
On May 7, 9:11 am, "Karen Tracey" <[EMAIL PROTECTED]> wrote:
> On
Hello,
I'm having a problem with the value of my DateField changing to 'True'
from '-MM-DD' when I save my record. Below is my model file:
///
class Test(models.Model):
mytest = models.DateField()
///
When I add a new record in my admin and select 'Today' next to my
DateField then the c
a know.
Thanks
On May 7, 10:25 am, "J. Cliff Dyer" <[EMAIL PROTECTED]> wrote:
> On Wed, 2008-05-07 at 07:37 -0700, Greg wrote:
> > Karen,
> > Here is the error that I'm getting:
>
> > //
> > Enter a valid date in -MM-DD format.
> > /
Hello,
This view did work. However, I just did a 'svn up' and now I believe
the new queryset-refactor is causing my code not to work. Below is my
view:
///
def tracking(request):
if request.POST:
for b in request.session['tracking']:
if request.POST.get(str(b.id)) != ""
Hello,
I have the following code:
///
import csv
from myproject.site.models import OrderEmail
reader = csv.reader(open("myfile.csv", "rb"))
for row in reader:
try:
b = OrderEmail(name=row[0], email=row[1], been_sent="0")
b.save()
except:
pass
assert False, "End"
Brant,
Nope...did the same thing.
On May 19, 2:00 pm, "Brant Fitzsimmons" <[EMAIL PROTECTED]>
wrote:
> You may want to try 'continue' instead of 'pass'.
>
>
>
> On Mon, May 19, 2008 at 2:48 PM, Greg <[EMAIL PROTECTED]> wrote:
>
> >
Brant,
No I don't
On May 19, 2:27 pm, "Brant Fitzsimmons" <[EMAIL PROTECTED]>
wrote:
> Do you know what the exception is?
>
>
>
> On Mon, May 19, 2008 at 3:23 PM, Greg <[EMAIL PROTECTED]> wrote:
>
> > Brant,
> > Nope...did the same thi
f how to
have my for loop keep going through the records...and just disregard
the records that have an email address that is already in the db.
On May 19, 2:38 pm, bruno desthuilliers
<[EMAIL PROTECTED]> wrote:
> On 19 mai, 20:48, Greg <[EMAIL PROTECTED]> wrote:
>
> > Hello,
w when the exception happens my loop stops.
Thanks
On May 19, 3:00 pm, Greg <[EMAIL PROTECTED]> wrote:
> Bruno,
> That is originally how I had my code.
>
> ///
>
> import csv
> from myproject.site.models import OrderEmail
>
> reader = csv.reader(open("my
Norman,
I added those print statements and ran the script. The output was
this over and over again:
///
current transaction is aborted, commands ignored until end of
transaction block
//
Any suggestions?
On May 20, 3:24 pm, "Norman Harman" <[EMAIL PROTECTED]> wrote:
> Gr
Does anyone have any experience using djangosearch, djapian, or django-
search? Any tutorials for using any of them? I'm kinda unsure as to
where to begin implementing any of them.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the G
Hello,
I'm trying to add a record to a ManyToMany table in a script.
/
Below is my script:
coll = Collection.objects.all()
for a in coll:
a.thematerials_set = [a.material]
assert False, "End"
Below is my model
class Collection(models.Model):
name = models.CharField(max_l
Hello,
I'm having a problem. I'm able to add and save a record from the
class described below. However, when I open that record back up in my
admin the estimated_date field displays true instead of the actual
date. When i try to save the record with true in the DateField I get
an error. Below i
Hello,
I have the following list:
[{'count': u'2', 'manu': }, {'count': u'4',
'manu': }, {'count': u'2', 'manu': }, {'count': u'2', 'manu': }]
My current list currently contains four dictionaries. They are:
{'count': u'2', 'manu': }
{'count': u'4', 'manu': }
{'count': u'2', 'manu': }
{'count':
Hello,
I have the following line in my code:
message = "This is my email" + a.name + "Here is the link http://mysite.com>Click Here"
send_mail('My Subject', message, '[EMAIL PROTECTED]', ['[EMAIL PROTECTED]'],
fail_silently=False)
Whenever I receive this email it's not a linkit's just
TED]>
wrote:
> Hi,
>
> as far as I know you have to set the correct MIME-type in your
> subject. This Wikipedia article should be a good
> start:http://en.wikipedia.org/wiki/MIME
>
> On Tue, Jun 24, 2008 at 3:51 AM, Greg <[EMAIL PROTECTED]> wrote:
>
> > Hello
On Jun 28, 6:31 pm, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Sat, 2008-06-28 at 18:05 -0500, Greg Lindstrom wrote:
> > I would like to store text with html markup in a table to be displayed
> > to the screen. When I created a TextField and placed html markup in
&g
Hello,
I have the following code:
///
def tracking(request):
a = Order.objects.filter(order_status=2)
request.session['tracking'] = list(a)
///
Whenever i access this function I get the following error:
ProgrammingError at /tracking/
operator does not exist: character varying = intege
I'm working on creating an e-commerce site in Django. I have a
website that sells area rugs from 20 different manufacturers. I am
wondering what the best way to configure my urls.py file. I've been
thinking of a couple of different ways to accomplish this.
1) Contained all in one url line
(r'^
turer):
> if manufacturer in my_manufacturers:
>do_something()
> else:
># error out with unknown manufacturer msg?
>
>
>
> Greg wrote:
> > I'm working on creating an e-commerce site in Django. I have a
> > website that sells area rugs from 20 dif
Hello,
I am trying to create a Django website where I sell area rugs. I'm
starting the process of creating the structure of my site, but am
having problems creating my admin correctly. Each area rug that I
sell has a list of sizes (with a price associated with each size). I
can't seem to figure
wever, I now get an error becuase I guess I can't use edit_inline in
a ManyToManyField. Any suggestions?
On May 20, 12:36 pm, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Sun, 2007-05-20 at 10:03 -0700, Greg wrote:
> > Hello,
> > I am trying to create a Django we
I have the following model
class sdetails(models.Model):
color = models.ForeignKey(color)
size = models.ForeignKey(size)
price = models.ForeignKey(price)
theslug = models.SlugField(prepopulate_from=("color", "size",
"price"))
class Admin:
p
I am trying to display the table in my Choice table. However it's
error's out everytime I try to see the contents of the table.
In my python shell prompt I do the following and get the error
C:\django\mysite>python manage.py shell
(InteractiveConsole)
>>> from mysite.rugs.models import Choice
>
code right here:
>
> def __str__(self,):
>return self.choice
>
> the return of __str__ needs to be a string not an object.
>
> Vance
>
> On 5/21/07, Greg <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
>
>
> > I am trying to display the table
ght here:
>
> def __str__(self,):
>return self.choice
>
> the return of __str__ needs to be a string not an object.
>
> Vance
>
> On 5/21/07, Greg <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
>
>
> > I am trying to display the table in m
like for Size,Price?
>
> Also,
>
> choice = models.ForeignKey(Style,
> edit_inline=models.TABULAR,num_in_admin=5)
>
> Did you mean for that to be:
>
> style = models.ForeignKey(Style,
> edit_inline=models.TABULAR,num_in_admin=5)
>
> Just curious..as then
f.name
>
> class Choice(models.Model):
> choice = models.ForeignKey(Style,
> edit_inline=models.TABULAR,num_in_admin=5)
> size = models.IntegerField(size)
> price = models..FloatField(null=True, max_digits=12,
> decimal_places=2, blank=True)
>
> def __str_
I'm having a problem displaying data in my admin using list_display.
I want to be able to show the Manufacturer in the admin from my styles
page. Here are my models:
class Manufacturer(models.Model):
name = models.CharField(maxlength=200)
manufacturerslug = models.SlugField(prepo
", line 1, in ?
AttributeError: 'QuerySet' object has no attribute 'rmanu'
>>>
I thought that was how I call a method?
Thanks
On May 23, 5:14 pm, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Wed, 2007-05-23 at 14:33 -0700, Greg wrote:
> > I
I have three tables (Manufacturer, Collection, Style). I have 10
manufacturers. Each manufacturer contains approx. 20 collection.
Each collection contains approx. 20 Styles. I was wondering if it's
possible when I'm adding styles I can select the manufacturer then my
collection (foreign key) fi
I'm working on a site where I'll be selling area rugs online. I will
have multiple manufacturers that contain multiple collections which
contain multiple styles which contain multiple sizes and prices. I'm
wanting to develop my model structure so that when I add a collection
I can specify 10 (o
I'm building a site where I'm going to have 10 manufacturers and each
of those manufacturers is going to have 10 collections and each of
those collections will contain 20 style. Confused Yet?
In my admin i have a table called styles. It looks like this:
class Style(models.Model):
name = mo
Hi,
Please help me !
I just wanna know how to order my queryset by lowering my field
before, like in SQL (ORDER BY LOWER(my_field) 'cause in this field
I've upper et lower case and by default my result is not sorted as I
want.
Thank you so much for your answer !
--~--~-~--~~--
Thanks for your answer
On 22 juin, 01:58, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Thu, 2007-06-21 at 06:41 -0700, greg wrote:
> > Hi,
>
> > Please help me !
>
> > I just wanna know how to order my queryset by lowering my field
> > before, like
Hello,
I have the following line in my urls.py file
r'^(?P\d+)/(?P\d+)/styles/$',
'mysite.rugs.views.showcollection'),
//
I have the following function defined in my views.py file
def showcollection(request, manufacturer_id, collection_id):
s = Style.objects.filter(
Karen,
Thanks...that is exactly what happened. I copied the old function but
forgot to delete it
Thanks
On Jul 7, 7:05 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote:
> On 7/7/07, Greg <[EMAIL PROTECTED]> wrote:
>
>
>
> > I done this before with just one
Hello,
I need to make sure I have django version 5302 or later. Where can I
go or what command do i need to run to see what version I have?
Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" gro
Collin,
When I run the command 'svn info' I get 'svn: '.' is not a working
copy'. I'm currently using a developmental version.
On Jul 15, 3:45 pm, Collin Grady <[EMAIL PROTECTED]> wrote:
> 'svn info'
--~--~-~--~~~---~--~~
You received this message because you ar
Collin,
I got it figured out. I ran 'svn info' from my django folder and I
was able to see what Revision I had.
Thanks
On Jul 15, 3:47 pm, Greg <[EMAIL PROTECTED]> wrote:
> Collin,
> When I run the command 'svn info' I get 'svn: '.' i
Hello,
I have the following function
/
def set_color(request):
if "favorite_color" in request.GET:
# Create an HttpResponse object...
response = HttpResponse("Your favorite color is now %s" % \
request.GET["favorite_color"])
# ... and set a cookie on
ris <[EMAIL PROTECTED]> wrote:
>
>
>
> > On Jul 19, 2:22 pm, Greg <[EMAIL PROTECTED]> wrote:
> > > I was wondering how do I send a 'favorite_color' GET parameter? Do I
> > > have to use a form to do this that sends data by GET or is there
> &
if' statement is true the view doesn't return
anything.
Thanks for any help
On Jul 18, 9:44 pm, Greg <[EMAIL PROTECTED]> wrote:
> I've seen other Django websites that use the ? mark at the end. I've
> always wondered what the reason for that was. So the only time
1 - 100 of 482 matches
Mail list logo