Hi, I'm using WinXP, Python27, django 1.3.1.
When I try django-admin.py startproject mysite, I get a "Usage django-
admin.py subcommand [options] [args]" listing of commands instead of
starting the project in mysite folder. . .I've tried every workaround
I've found on Google & on this site. I've p
On Dec 30, 8:10 am, Ramiro Morales wrote:
> On Fri, Dec 30, 2011 at 1:32 AM, Chris Kavanagh wrote:
> > Hi, I'm using WinXP, Python27, django 1.3.1.
>
> > When I try django-admin.py startproject mysite, I get a "Usage django-
> > admin.py subcommand [options] [
On Dec 30, 9:42 am, Kev Dwyer wrote:
> Chris Kavanagh wrote:
> > Hi, I'm using WinXP, Python27, django 1.3.1.
>
> > When I try django-admin.py startproject mysite, I get a "Usage django-
> > admin.py subcommand [options] [args]" listing of commands instea
On Dec 30, 3:43 pm, Timothy Makobu
wrote:
> Hi,
>
> If you can, upload a screenshot of the command prompt with the commands
> entered herehttps://droplr.comand send us the link.
>
> Certainly, thanks.
https://droplr.com/images
>
>
>
>
>
>
--
You received this message because you are subscrib
On Dec 30, 3:43 pm, Timothy Makobu
wrote:
> Hi,
>
> If you can, upload a screenshot of the command prompt with the commands
> entered herehttps://droplr.comand send us the link.
>
> I'm not sure you'll be able to see the screenshot at the link, it's very
> small. So, here's a copy/paste of it fr
On Dec 30, 8:10 am, Ramiro Morales wrote:
> On Fri, Dec 30, 2011 at 1:32 AM, Chris Kavanagh wrote:
> > Hi, I'm using WinXP, Python27, django 1.3.1.
>
> > When I try django-admin.py startproject mysite, I get a "Usage django-
> > admin.py subcommand [options] [
On Dec 31, 10:19 am, Dennis Lee Bieber wrote:
> On Fri, 30 Dec 2011 16:36:32 -0800 (PST), Chris Kavanagh
>
> wrote:
> >> I'm not sure you'll be able to see the screenshot at the link, it's very
> >> small. So, here's a copy/paste of it from my
While looking for a solution, I found someone with a similar problem.
he thought there was a problem with the way Python Files are
associated. So I did what was suggested on the command line, using
"assoc.py" and ftype Python.File. What I got back is listed below. I
don't think this is right accord
On Dec 31, 12:13 pm, Andre Terra wrote:
> This has been answered before:
>
> http://groups.google.com/group/django-users/browse_thread/thread/9d53...
>
> Cheers,
> AT
>
>
> Yes, I saw that thread, and I tried changing my registry as suggested. And
> the other 'work around'. Neither worked.
>
>
On Dec 31, 11:47 am, Timothy Makobu
wrote:
> Hi,
>
> File associations are fine i reckon, because django-admin is giving you the
> help message because for some reason it thinks you're *giving it improper
> input*.
>
>So, you're saying you don't believe this is the problem (File Associations)??
On Dec 31, 11:58 am, Bart Nagel wrote:
> At 2011-12-31 19:47:35 +0300, Timothy Makobu wrote:
>
> > File associations are fine i reckon, because django-admin is giving you the
> > help message because for some reason it thinks you're *giving it improper
> > input*.
>
> What about other Python pro
On Dec 31, 12:38 pm, Ramiro Morales wrote:
> On Fri, Dec 30, 2011 at 4:04 PM, Chris Kavanagh wrote:
>
> >> C:\python27\python C:\path\to\django-admin startproject foo
>
> >> or, if you have C:\python27 in the PATH, simply:
>
> >> python C:\path\to\dja
On Dec 31, 6:18 pm, Bart Nagel wrote:
> At 2011-12-31 15:01:39 -0800, Chris Kavanagh wrote:
>
>
>
>
>
>
>
>
>
> > On Dec 31, 11:58 am, Bart Nagel wrote:
> > > What about other Python programs? Do they have the same problem?
>
> > > Pu
On Dec 31, 6:48 pm, Bart Nagel wrote:
> At 2011-12-31 15:43:36 -0800, Chris Kavanagh wrote:
>
> > Ok, I CAN start the Python Interpreter from the command line by just
> > typing "python" then "enter".
>
> > I saved the file "args.py" in
On Dec 31, 6:48 pm, Bart Nagel wrote:
> At 2011-12-31 15:43:36 -0800, Chris Kavanagh wrote:
>
> > Ok, I CAN start the Python Interpreter from the command line by just
> > typing "python" then "enter".
>
> > I saved the file "args.py" in
On Dec 31, 7:00 pm, Chris Kavanagh wrote:
> On Dec 31, 6:48 pm, Bart Nagel wrote:
>
>
>
>
>
>
>
>
>
> > At 2011-12-31 15:43:36 -0800, Chris Kavanagh wrote:
>
> > > Ok, I CAN start the Python Interpreter from the command line by just
> > &g
>
> No, that's not wrong, that's how it should be. The python interpreter
> is in your path, but you're telling the interpreter which file to run.
> If you tell it to run a file args.py and there is no such file in the
> current directory, it's correct to give you an error message.
>
> Does this l
On Dec 31 2011, 7:13 pm, Bart Nagel wrote:
> At 2011-12-31 16:00:44 -0800, Chris Kavanagh wrote:
>
> > On Dec 31, 6:48 pm, Bart Nagel wrote:
> > > Does this little script tell you correctly the number of arguments you
> > > pass to it?
>
> > Yes, it te
On Jan 1, 4:44 am, Bart Nagel wrote:
> At 2012-01-01 01:12:27 -0800, Chris Kavanagh wrote:
>
> > On Dec 31 2011, 7:13 pm, Bart Nagel wrote:
> > > When I run that I get
> > > 3 arguments: ['args.py', 'startproject', 'mysite']
>
&g
On Jan 2, 4:59 am, Andre Terra wrote:
> Use virtualenv: http://pypi.python.org/pypi/virtualenv
>
> Cheers,
> AT
>
> I think I'll give that a try. Thanks for the help.
>
>
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group,
Thanks to EVERYONE for the help! ( and Bart for his help/patience!)
--
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
django-users
I'm new to django & programming in general. I know the basics of
Python. Anyways, going through the djangoproject tutorial, I came to
the part where you edit the polls/models.py, and this is where I need
advice.
I understand roughly what's going in when we write the script in
models.py, however if
On Jan 2, 6:57 pm, Chris Kavanagh wrote:
> I'm new to django & programming in general. I know the basics of
> Python. Anyways, going through the djangoproject tutorial, I came to
> the part where you edit the polls/models.py, and this is where I need
> advice.
>
>
On Jan 2, 7:38 pm, Mike Dewhirst wrote:
> On 3/01/2012 10:59am, Chris Kavanagh wrote:
>
>
>
>
>
>
>
>
>
>
>
> > On Jan 2, 6:57 pm, Chris Kavanagh wrote:
> >> I'm new to django& programming in general. I know the basics of
> >&
On Jan 2, 8:49 pm, Victor Hooi wrote:
> Hi,
>
> Do you mean learning more about Django in general, or about the
> models.py/database portion specifically?
>
> If you haven't done much web-development before, or used any MVC
> frameworks, I suggest you start by reading up on those - there's plent
On Jan 3, 4:09 am, wC wrote:
> Chris,
>
> I think was somehow in the same stage not so long ago... Here is how I went
> about it:
>
> 1. I watched a db-class video from time to time (teaches you what joins are
> etcetera). Using the ORM without db knowledge is ok if efficiency is not
> your main
On Jan 3, 5:58 pm, Python_Junkie
wrote:
> Don't want to confuse you on the database topic, but thought I would
> add my 2 cents.
>
> You asked how to go about learning how to design / utilize the
> database within the context of django.
>
> I just wanted to point out that the django tutorial wil
On Jan 3, 11:40 pm, Dennis Lee Bieber wrote:
> On Tue, 3 Jan 2012 19:30:37 -0800 (PST), Chris Kavanagh
>
> wrote:
>
> >Well, I was referring to the database part, but really I need to learn
> >more about web development too. I know HTML, CSS, JavaScript vaguely,
> &g
On Jan 4, 8:20 am, Andre Terra wrote:
> I'm sorry, folks, but I'll have to *vehemently **disagree *with a lot of
> what has been said in this thread. To the OP, I'm sorry I didn't reply any
> sooner.
>
> No, you *don't need *to go reading about what MVC means. Django is a
> *MTV *framework,
> no
On Jan 4, 9:16 am, Venkatraman S wrote:
> On Wed, Jan 4, 2012 at 6:50 PM, Andre Terra wrote:
> > You won't need to write raw SQL in Django until you've reached a big
> > bottleneck, and one that can't be solved in any other way. Writing raw SQL
> > is exactly what Django wants you to *stop* doi
On Jan 4, 10:36 am, Javier Guerra Giraldez wrote:
> On Wed, Jan 4, 2012 at 8:20 AM, Andre Terra wrote:
> > No, you don't need to go reading about what MVC means. Django is a MTV
> > framework, not MVC. There are similarities, but the differences are enough
> > to confuse your head if this is yo
On Jan 5, 3:58 am, Lie Ryan wrote:
> On 01/05/2012 01:01 PM, Chris Kavanagh wrote:
>
>
> While learning SQL could be helpful for writing fine-tuned SQL queries,
> IMO it doesn't really help much to design an effective database. To
> design an effective database schema,
On Jan 5, 10:35 am, Dennis Lee Bieber wrote:
> On Wed, 4 Jan 2012 17:50:41 -0800 (PST), Chris Kavanagh
>
> While my comment regarding MVC has been shot down by others, I'll
> still stand by the comment regarding relational database theory: the
> first three C
On Jan 5, 2:54 pm, Lie Ryan wrote:
> On 01/06/2012 02:35 AM, Dennis Lee Bieber wrote:
>
> > Django's models are just a means to define those independent of engine
> > specific notation.
>
> while introducing django-specific notation, which generally maps more
> neatly to the theoretical foundati
On Jan 5, 6:40 pm, Petite Abeille wrote:
> On Jan 6, 2012, at 12:13 AM, Chris Kavanagh wrote:
>
> > I believe, thanks to your (previous) post, I was confused as to the
> > difference between SQL and Database in general. I had thought learning
> > SQL was learning
cle" in the url.
According to the urlconf last entry r'^create/$', it should only match a
url with "/create" NOT a url with "/article/create". The caret means
"starts with" and the $ means "end with", so to get to the "create" page it
On Monday, September 9, 2013 6:41:23 PM UTC-4, Thomas wrote:
>
> On 9/9/13 3:30 PM, Chris Kavanagh wrote:
> > I haven't used this group in a long time, so I hope I do everything
> > correctly. If I don't, I apologize in advance.
> >
> > I thought I und
This is just a tutorial I'm going through Tom. I'm not trying to write
anything, just trying to understand this part. And I apologize for making
my question(s) confusing, I'm not exactly sure how to ask it.
Let's back up for a second. I'm not trying to match anything, I was telling
you what I alre
13 10:57:51 PM UTC-4, Thomas wrote:
>
> On 9/9/13 5:40 PM, Chris Kavanagh wrote:
>
> This is just a tutorial I'm going through Tom. I'm not trying to write
> anything, just trying to understand this part. And I apologize for making
> my question(s) confusing, I'm n
I just added a FileField to my Model (thumbnail =
models.FileField(upload_to=get_upload_file_name), however when I try to use
South to migrate the model, I get a message telling me . . . "The field
'Article.thumbnail' does not have a default specified, yet is NOT NULL.
Since you are adding this
ngs like Django and
other packages. Just google the instructions for that. . .I hope this
helps. If not , just post your what happens and I'll help yoy.
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program
Files\ATI Technologies\ATI Control Panel;C:\Documents and Settings\Chris
I'm working on an online shop, and I'm having a problem in the cart,
here's a screen shot (http://pasteboard.co/Vwnv2T0.png).
I'd like the form for each item (product) to show it's current quantity
(that's already been added to the cart)
as an initial value as most ecommerce sites do.
I've t
return render(request, 'cart_id/cart.html', context)
>
> Note how I moved the context assignment OUTSIDE the for loop. Then adjust
> your template to index into add_product_forms based on item.pk.
>
> There are lots of other ways to do this too, I just thought this was the
&
how I moved the context assignment OUTSIDE the for loop. Then adjust
> your template to index into add_product_forms based on item.pk.
>
> There are lots of other ways to do this too, I just thought this was the
> quickest to show over email.
>
> On Sat, May 14, 2016 at 8:42
t = {'objects': objects}
> return render(request, 'cart_id/cart.html', context)
>
> Then in your template, loop over "objects" instead of "cart_items":
>
> {% for obj in objects %}
> {{ obj.item.total }}
> {{ obj.form.quantity }}
>
>
;objects" instead of "cart_items":
>
> {% for obj in objects %}
> {{ obj.item.total }}
> {{ obj.form.quantity }}
>
> etc. See what's going on? Each item needs its own form.
>
> On Sun, May 15, 2016 at 12:31 AM, Chris Kavanagh wrote:
>
&g
*Stripe Not Returning Token (test mode)*
I'm trying out Stripe in test mode on a site I'm building, and for some
reason Stripe won't return a token as it's supposed to.
I can tell it's not returning a token, because I get a
MultiValueDictKeyError when submitting the form. Plus, it won't print
th
27;]
> customer = stripe.Customer.create(
> description=summary_dict['email_address'],
> source=token
> )
>
>
> --
> *From: *"Chris Kavanagh"
> *To: *"Django users"
> *Sent: *Thursday, June 16
;stripeToken']
> customer = stripe.Customer.create(
> description=summary_dict['email_address'],
> source=token
> )
>
>
> --
> *From: *"Chris Kavanagh"
> *To: *"Django users"
> *Sent: *Th
Oh, never mind, you're using stripe checkout. My bad. Let me try it your
way.
On Fri, Jun 17, 2016 at 9:33 PM, Chris Kavanagh wrote:
> Kristofen, could I see the template? The javascript/jQuery you're using in
> the template specifically?
>
> I think that's where th
or None)
> if request.method == 'POST' and stripe_form.is_valid():
> token = stripe_form.cleaned_data['stripeToken']
> customer = stripe.Customer.create(
> description=summary_dict['email_address'],
> source=token
>
ta-allow-remember-me="true"
>
> data-email="{{ summary_dict.email_address }}"
>
> data-locale="auto"
>
> data-label="Register with Card"
>
> data-zip-code="true">
>
>
>
>
>
I have a model form called *"ContactForm" *that has an email field. I
created a custom* forms.ValidationError* in *"clean_email"* method
which checks to see if the email is already in the database , however it's
never raised on submit.
When submit is called, the view runs and I get the error
nd
> adding values to form.errors)
>
> On Thu, Dec 22, 2016 at 5:14 PM, Chris Kavanagh > wrote:
>
>> I have a model form called *"ContactForm" *that has an email field. I
>> created a custom* forms.ValidationError* in *"clean_email"* method
>>
validate yourself (the string
> inside the raise ValidationError call), you can return that.
>
> On Thu, Dec 22, 2016 at 11:49 PM, Chris Kavanagh > wrote:
>
>> Yeah, I was wrong Vijay. For some odd reason I thought the
>> ValidationError would catch it BEFORE submitted.
I'm trying to understand how overriding the Constructor of a Form
(forms.Form or model.Models) allows you to access the Request Object? How
does overriding __init__ allow one access to the Request?
I've looked at BaseForm and don't see the Request in the Constructor. So, I
don't get it. I thoug
To possibly answer my own question, thinking out loud, we have to override
the Form Constructor so we can pass in the Request from the view when
instantiating the Form?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this g
Thank you so much, James. . .I greatly appreciate you taking the time to
answer!
On Tuesday, February 23, 2016 at 1:50:57 AM UTC-5, James Schneider wrote:
>
> On Mon, Feb 22, 2016 at 10:23 PM, Chris Kavanagh > wrote:
>
>> To possibly answer my own question, thinking ou
58 matches
Mail list logo