Jumping in the thread.
is GAE supporting django? i knew that something is supported but
not completely (like db is non rel in GAE).
is there a tutorial on how to set it up? what did you follow?
my 2 cents on the server, right now i'm using AWS free tier, it's for
12months and it's good. after
thanks it works fine, but the if statement is not working,,, why? it
always gives the first result?.
On Mon, Nov 12, 2012 at 1:28 PM, Jonathan D. Baker <
jonathandavidba...@gmail.com> wrote:
> You need to capture the id parameter in your URL by wrapping it in
> parentheses: ([0-9])
>
> Sent
On Monday, 12 November 2012 08:37:44 UTC, muhammed riyas wrote:
> thanks it works fine, but the if statement is not working,,, why? it
> always gives the first result?.
>
This is a question about AppEngine, not Django. Please post it to the
appropriate list.
(Hint: you absolutely certain
sorry:)
On Monday, 12 November 2012 15:09:09 UTC+5:30, Daniel Roseman wrote:
>
> On Monday, 12 November 2012 08:37:44 UTC, muhammed riyas wrote:
>
>> thanks it works fine, but the if statement is not working,,, why? it
>> always gives the first result?.
>>
>
>
> This is a question about
On Sunday, 11 November 2012 23:51:44 UTC, HA wrote:
> Hi Folks,
>
> I want to export data from my named tuple within my django html template.
> Can someone please point me to an example or let me know how to accomplish
> this?
> I know how to get this done within my python script but this time I
If you're working with the generic CBVs, I would strongly recommend taking
a look at the documentation provided by the Classy CBV project -
http://ccbv.co.uk/. Because of the way it's auto-generated it allows you
to see at a glance exactly what set of methods and attributes are
implemented by
On Monday, November 12, 2012, Daniel Roseman wrote:
> On Sunday, 11 November 2012 23:51:44 UTC, HA wrote:
>
>> Hi Folks,
>>
>> I want to export data from my named tuple within my django html template.
>> Can someone please point me to an example or let me know how to
>> accomplish this?
>> I know
On Monday, November 12, 2012, Tom Christie wrote:
> If you're working with the generic CBVs, I would strongly recommend taking
> a look at the documentation provided by the Classy CBV project -
> http://ccbv.co.uk/. Because of the way it's auto-generated it allows you
> to see at a glance exactly
Hia Folks,
I recently made a web app with Django where I present a list of Jobs a user
can execute. I make a list of Jobs based on user and group memberships. I
use contrib.auth for the memberships.
I make the list with this:
-- snip --
class JobManager(models.Manager):
def jobsByUser(self,
Hia Folks,
I've cooked up a 'simple' webapp where based on user and group memberships,
a user gets a list of Jobs he can execute. Listing jobs by group membership
is not a problem.
I select the Jobs a user sees like this:
class JobManager(models.Manager):
def jobsByUser(self, username):
Bit of a design question:
I have a site where there are a few different views depending on each
user's status - i will explain:
1. A user can create an object, so should be able to view it and update
it.
2. A user can 'follow' another users object, so should be able to view
it and
i am trying to sync mysql to django using command python mange.py syncdb
and it is giving me long list of errors
first error pointing out error in manage.py
other in __init__.py, base.py,validation.py
what to do???
--
You received this message because you are subscribed to the Google Groups
Hi,
i'm coding a system using Django Pyodbc and SQL Server 2005.
But i've a problem of encoding when i try to save some complex string like
"éei«éíπ≤Æ∫" in sql server through pyodbc.
The error was always "'not enough arguments for format string'"
i've identified the line in the file base.py in py
You have to convert id to int
W dniu 12.11.2012 09:37, muhammed riyas pisze:
thanks it works fine, but the if statement is not working,,, why? it
always gives the first result?.
On Mon, Nov 12, 2012 at 1:28 PM, Jonathan D. Baker
mailto:jonathandavidba...@gmail.com>>
wrote:
You nee
It'll be nice if u gave specifics.
On 11/12/12, hardik juneja wrote:
> i am trying to sync mysql to django using command python mange.py syncdb
> and it is giving me long list of errors
> first error pointing out error in manage.py
> other in __init__.py, base.py,validation.py
> what to do???
>
I know this is an old problem with many answers... but no one helps me. ^^
what i have:
Settings
MIDDLEWARE_CLASSES = (
'django.middleware.csrf.CsrfViewMiddleware',
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.Session
Hi all,
I have 4 classes and i want to build a get_absolute_url() for a class,
querying other 3 classes. But i get "list index out of range" error
for the FILTER row. Any ideas?
class Aaa( models.Model ):
...
...
class City( models.Model ):
...
...
class Bbb( models.Model ):
aaa
When is it that you are getting the 403 ?
On Mon, Nov 12, 2012 at 7:30 PM, Nebros wrote:
> I know this is an old problem with many answers... but no one helps me. ^^
> what i have:
>
> Settings
> MIDDLEWARE_CLASSES = (
> 'django.middleware.csrf.CsrfViewMiddle
When i put in a variable in my type="text" and push type="submit" (by the
step to next page)...
Am Montag, 12. November 2012 16:52:20 UTC+1 schrieb Vibhu Rishi:
> When is it that you are getting the 403 ?
>
>
> On Mon, Nov 12, 2012 at 7:30 PM, Nebros
> > wrote:
>
>> I know this is an old pro
On Nov 11, 2012, at 9:57 AM, Kevin wrote:
> Hello!
>
> I am curious of how many existing Django developers have moved over to
> class-based views or are still using the function-based ones. I tend to use
> a mix depending on what I am trying to do. I try to stick with
I use only function
John,
My argument (or reason for switching) is it's DRY. Saves a lot of time and
repetition in the long run ... at least in my experience. On the other
hand, there are still perfectly good purposes for "function based views".
On Mon, Nov 12, 2012 at 11:07 AM, John DeRosa wrote:
> On Nov 11, 20
Could you include your 'kundendaten' view too, please.
Any error text on the 403 page would also be useful.
On Monday, 12 November 2012 15:54:50 UTC, Nebros wrote:
>
> When i put in a variable in my type="text" and push type="submit" (by the
> step to next page)...
>
>
> Am Montag, 12. November
On Mon, Nov 12, 2012 at 10:06 AM, ozgur yilmaz wrote:
> Hi all,
>
> I have 4 classes and i want to build a get_absolute_url() for a class,
> querying other 3 classes. But i get "list index out of range" error
> for the FILTER row. Any ideas?
>
> class Aaa( models.Model ):
>...
>...
>
> cl
i know this was asked long time ago but i guess others are looking for the
answer as well (as i did), so im publishing my answer here.
To view the id all you have to do is add it to the read only fields:
readonly_fields = ['id']
בתאריך יום שישי, 27 במאי 2011 23:19:56 UTC+3, מאת Frisbie:
>
> Hello
In pre 1.4 projects, it was common for projects to have multiple ways to import
stuff;
because the project path, and the path 1 level up were both in the python path.
This way, you can actually have 2 versions of the module imported,
and hence your singleton breaks (depending on the route taken t
Second that. If you consider moving back to MySQL,
at least make they've seen the following video at:
http://wekeroad.com/2012/07/19/postgresql-rising
;-)
Secondly, timezones of 1.4 are painful in MySQL to convert to,
and south migrations won't be able to rollback failed schema changes.
Greetin
Hi. I'm using nginx+uwsgi to serve a django app. I'd like to configure it
to be able to send mail with django's send_mail() and send_mass_mail()
functions. I've played with the nginx configuration files using the
examples here
http://wiki.nginx.org/Configuration#Mail_examples
I have a very s
Hi, I am trying to create a very basic ratings and comments app. I have
this model:
class Ratings(models.Model):
user = models.ForeignKey(UserProfile)
product = models.ForeignKey(Product)
rate = models.PositiveIntegerField(default=0, null=False,
choices=((1,'1'),(2,'2'),(3,'3'),(4,'4
The nginx configuration examples you link to are all POP3 or IMAP.
Sending mail is SMTP. But even then, you need an SMTP server to proxy
/to/. In these examples, nginx is simply acting as a proxy, not as an
actual mail server. I would recommend using a bona fide SMTP server. Or
use one already avai
On Tue, Nov 13, 2012 at 4:07 AM, John DeRosa wrote:
>
> I use only function-based views. I've yet to read a compelling argument for
> switching.
I think the best argument goes something like:
- if you have previously developed sites that are now stable or only
require minor changes, and wont h
It took me a few months to warm up to using class based views, and it was
the pending decommissioning of the generic function based views that first
caused me to take a look. Now, I have converted all but the most
complicated views to the class format (why change what works?). Any new
work I
On Tue, Nov 13, 2012 at 6:37 AM, Josue Balandrano wrote:
> Hi, I am trying to create a very basic ratings and comments app. I have this
> model:
>
> class Ratings(models.Model):
> user = models.ForeignKey(UserProfile)
> product = models.ForeignKey(Product)
> rate = models.PositiveInteg
Doesn't the default need to be one of the choices?
> models.PositiveIntegerField(default=1, null=False,
> choices=((1,'1'),(2,'2'),(3,'3'),(4,'4'),(5,'5')))
Sent from my iPhone
On Nov 12, 2012, at 11:37 AM, Josue Balandrano wrote:
> Hi, I am trying to create a very basic ratings and comments
Yeah. Makes good sense. I guess that Postfix is one of the more popular
options. Is there any reason why I should NOT use postfix.
On Monday, November 12, 2012 1:47:03 PM UTC-5, Nikolas Stevenson-Molnar
wrote:
>
> The nginx configuration examples you link to are all POP3 or IMAP.
> Sending
Judging by the docs it really doesn't matter the kind of field it is. As
long as it has de choices tuple list. Giving that this tuple gives you the
value it should take and the human readable form. So I am guessing django
framework just mapps the labels with the values you give in the choices
t
Iam really not shure. Will try to chane this.
El lunes, 12 de noviembre de 2012 13:56:08 UTC-6, Jill Green escribió:
>
> Doesn't the default need to be one of the choices?
>
> models.PositiveIntegerField(default=1, null=False,
> choices=((1,'1'),(2,'2'),(3,'3'),(4,'4'),(5,'5')))
>
>
> Sent from m
On Tue, Nov 13, 2012 at 8:52 AM, Josue Balandrano wrote:
> Judging by the docs it really doesn't matter the kind of field it is. As
> long as it has de choices tuple list. Giving that this tuple gives you the
> value it should take and the human readable form. So I am guessing django
> framework j
1st trial with generic views:
url.py:
url(r'^account/(?P\d+)/$', AccountDetailView.as_view(),
name='account-detail'),
views.py:
class AccountDetailView(DetailView):
model = Account
In the template, I get the data so:
object.field
But how do I get the field name (model.field.
On Tue, Nov 13, 2012 at 9:51 AM, Axel Rau wrote:
> 1st trial with generic views:
>
> url.py:
> url(r'^account/(?P\d+)/$', AccountDetailView.as_view(),
> name='account-detail'),
>
> views.py:
> class AccountDetailView(DetailView):
> model = Account
>
> In the template, I get the data s
Not sure. It's VPS and I was handed a Debian install with practically
nothing on it. I even had to install make to be able to compile nginx.
I'm looking into setting up Postfix+Dovecot+Roundcube (or SquirrelMail)
On Mon, Nov 12, 2012 at 8:37 PM, Dennis Lee Bieber wrote:
> On Mon, 12 Nov 2012 1
40 matches
Mail list logo