Passing ahref link as a variable to a view

2014-02-09 Thread judy wawira
i have a django page that loads urls as such Please select server to create shredder job http://s.com/ http://munene.com/ http://faith.com/ http://one.com/ when a u

Re: I'm getting obsessed! Where should I put this code?

2014-02-09 Thread Nikolas Stevenson-Molnar
I'm not sure it makes sense to put something that raises a "BadRequest" type error in the model. That's more of an API exception. I'd say put it in the resource. If you find yourself repeating it a lot then put the validation in it's own function and/or use subclasses if appropriate. _Nik On 2/9/

Re: windows perl (3.3) stops printing output to console

2014-02-09 Thread Thomas Lockhart
On 2/9/14 1:13 AM, Mike wrote: I am working through the Django tutorial. Python was working. Python directory is still in my PATH. I made it through part 2 up until I tried to add the TEMPLATE_DIRS statement into mysite\settings.py. I don't know where the source of Django is so in the comma

Free Book: Test-Driven Development with Python

2014-02-09 Thread waverider
The "Test-Driven Development with Python" book uses Django for its code examples. And it's free: http://chimera.labs.oreilly.com/books/123400754 (at least during this pre-release phase) -- You received this message because you are subscribed to the Google Groups "Django users" group. To un

Re: I'm getting obsessed! Where should I put this code?

2014-02-09 Thread Arnold Krille
On Sun, 9 Feb 2014 02:15:46 -0800 (PST) Glyn Jackson wrote: > So far I have moved this logic around so many times, but where should > it really be happening in my Django project? Opinions very much > welcome. Thanks > > 1) product *pre_save* - this works really well but validation looks > odd he

windows perl (3.3) stops printing output to console

2014-02-09 Thread Mike
I am working through the Django tutorial. Python was working. Python directory is still in my PATH. I made it through part 2 up until I tried to add the TEMPLATE_DIRS statement into mysite\settings.py. I don't know where the source of Django is so in the command prompt I began typing: pytho

I'm getting obsessed! Where should I put this code?

2014-02-09 Thread Glyn Jackson
I'm getting obsessed! I have an API (TatstyPie) which saves a product. Every time this resource is saved I assign stock or rise an error if their is no stock. *get and allocate some stock:* stock = Stock.objects.filter(availability="Available", product=product)[:1].get() *check we have stock

Re: Using SSL and Apache on Windows together

2014-02-09 Thread Arnold Krille
On Sun, 9 Feb 2014 06:48:10 -0800 François Schiettecatte wrote: > SSL is not something that is handled by Django but is further up the > stack, you should check how to implement SSL with your Windows Server. Actually its not that high (or low) on the stack. You don't configure SSL in the OS (wind

Re: Using SSL and Apache on Windows together

2014-02-09 Thread François Schiettecatte
Jonathan SSL is not something that is handled by Django but is further up the stack, you should check how to implement SSL with your Windows Server. François On Feb 9, 2014, at 6:43 AM, Robert Jonathan Šimon wrote: > I was trying to find something on the web, but i didnt found anything. I wan

Using SSL and Apache on Windows together

2014-02-09 Thread Robert Jonathan Šimon
I was trying to find something on the web, but i didnt found anything. I want to use HTTPS with my Django project on Windows server. I have installed Django 1.6 a Python 3.3 64Bit. How can i configure SSL connection, and are there any problems with it? Thank for all the help -- You received th

How to use djblets (I get error)

2014-02-09 Thread Daniel Roseman
So, given the error is in the template, you didn't think it would be a good idea to post that, instead of a load of other code? You have probably forgotten to do {% load static %}. Nor this has nothing to do with djblets. -- DR. -- You received this message because you are subscribed to the G