On Fri, Dec 9, 2011 at 2:33 PM, Annie wrote:
> Russ:
>> Long comments aren't required; you just need to provide something
>> that can be answered "OK".
>
> That makes perfect sense, especially now that I see how it's being
> used. *g* (Hadn't gotten to that part of the python unittest docs yet.
>
Hi,
I have the following lines in my model:
entry_date = models.DateTimeField(auto_now_add=True)
pub_date = models.DateTimeField('date published', blank=True,
null=True)
last_change_date = models.DateTimeField(auto_now=True)
Basically, I want the entry date to be added automatically,
On Fri, 2011-12-09 at 12:55 +, Tom Evans wrote:
> On Fri, Dec 9, 2011 at 12:41 PM, kenneth gonsalves
> wrote:
> > On Thu, 2011-12-08 at 21:04 -0800, ziggi wrote:
> >> Maybe has another way to do this?
> >
> > iequal, icontains ...
>
> OP is talking about case insensitive ordering, not queryin
Thanks for the reply but that didn't help.
On Dec 9, 5:41 pm, Furbee wrote:
> In urls.py:
>
> Change:
> (r'^portfolio/', include('project.urls.web')),
>
> To:
> (r'^portfolio/$', include('project.urls.web')),
>
> The dollar sign makes it the end of the regular expression string. Without
> it, /po
In urls.py:
Change:
(r'^portfolio/', include('project.urls.web')),
To:
(r'^portfolio/$', include('project.urls.web')),
The dollar sign makes it the end of the regular expression string. Without
it, /portfolio/ will match with /portfolio/funstuff,
/portfolio/?my_hax_rock, etc. See if that helps.
Hello,
For some reason I'm getting a 404 in google chrome when I visit /
portfolio/. The url entered is /portfolio/ but it returns as a 404 at /
portfolio/undefined/ in the chrome developer tools window. I read a
post about some issues with chrome handling errors and to resolve it
by unchecking "U
How do I ensure that a blank InlineModelAdmin is saved when the parent
form is submitted? Here's a simplified version of my code:
class Flagset(Model):
group = OneToOneField(Group)
flag = BooleanField()
class FlagsetInline(TabularInline):
model = Flagset
class GroupAdmin(ModelA
If you have a dataset that is too large to fit in memory comfortably,
the ability to pass a generator to an httpresponse means you can break
it up into multiple smaller queries (outside the template system
anyway):
def queryset_to_csv(queryset,delimiter=',',steps=500):
""" generator for large
>
>
> As you can see the templates directory is stored inside the app directory.
>
> Reading the django documentation instead they says that the templates dir
> should live inside the root directory of the projects.
>
> I'm wondering, what's is the common convention about it?
>
> I thought to store
Hello, I'm totally new in the django universe and I'm trying out to build a
little project.
There are many days who I'm following many tutorial on django framework. But
it's not clear for me how the convention for templates is.
Following the djangobook I've build a projects who has the followin
https://github.com/joshourisman/django-tablib
--
Kenneth Reitz
On Friday, December 9, 2011 at 8:33 AM, Alen Mujezinovic wrote:
> Hey
>
> Here's what I use to add CSV export to the admin:
>
> https://gist.github.com/46e6d19e6e08faefb476
> --
> You received this message because you are subsc
Hey
Here's what I use to add CSV export to the admin:
https://gist.github.com/46e6d19e6e08faefb476
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/django-users/-/3dDsN7e
On Fri, Dec 9, 2011 at 4:12 PM, Sells, Fred
wrote:
> I'm getting an http request from another server in our system and I need
> to respond using a csv format. I've seen the example in the docs where
> the template looks like this:
>
> {% for row in data %}"{{ row.0|addslashes }}", "{{ row.1|addsl
Also, here's the actual code that is used by the mixin to assemble the
response:
https://gist.github.com/70beb521546d59deb207
Compare this to what is going on in `ExtendsNode.render`:
https://code.djangoproject.com/browser/django/trunk/django/template/loader_tags.py#L103
The code in the gist
I'm getting an http request from another server in our system and I need
to respond using a csv format. I've seen the example in the docs where
the template looks like this:
{% for row in data %}"{{ row.0|addslashes }}", "{{ row.1|addslashes }}",
"{{ row.2|addslashes }}", "{{ row.3|addslashes }}"
Hey Tom
I've had a look through previous tickets if something similar came up and
also looked at the link you posted. It's the right direction, but not quite
what I'm trying. Pulling out a single block from a template and rendering
is easy. It breaks and throws an `AttributeError` though as soo
On 12/09/2011 03:06 AM, Reinout van Rees wrote:
On 09-12-11 01:28, Jim Byrnes wrote:
from django.conf.urls.defaults import *
from mysite import views
from mysite.views import hello, current_datetime, hours_ahead,
display_meta
from django.contrib import admin
from mysite.contact import views
from
Great thanks for that. It definitely works now.
--
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+unsubscr...@googlegro
On Fri, Dec 9, 2011 at 3:16 PM, Alen Mujezinovic
wrote:
> Whoops. Editor ate the formatting. Here's the correctly formatted
> version: https://gist.github.com/d7b50c7449dfd09725ea
>
That version is much easier to read :)
This ticket renders email contents from different blocks within a template:
Whoops. Editor ate the formatting. Here's the correctly formatted
version: https://gist.github.com/d7b50c7449dfd09725ea
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/dj
Hi group
I considered posting this to django-dev or opening a ticket but
decided to erron the side of caution.
I've been looking thoroughly through django's template code the last
two daysbecause I'd like to render only parts of templates.
Pseudocode:
tpl = Template(""" {% block somebloc
I am thinking to build my own like system, as a way of learning
various technologies including Javascript; and to gain a better
understanding of authentication and XSS. Most importantly though, this
will provide a fun project with which to learn DJango.
Use-case:
1.Unique ID generated atop a l
On Friday, 9 December 2011 05:04:23 UTC, ziggi wrote:
>
> Hi!
>
> I found only way to ordering query results ignorecase by using :
>
> Spam.objects.extra(select={'eggs_upper':'uppper(eggs)',order_by['eggs_upper']})
>
> Maybe has another way to do this?
>
In MySQL, you can set the collation of your
On Fri, Dec 9, 2011 at 12:41 PM, kenneth gonsalves
wrote:
> On Thu, 2011-12-08 at 21:04 -0800, ziggi wrote:
>> Maybe has another way to do this?
>
> iequal, icontains ...
OP is talking about case insensitive ordering, not querying (and he
has the simplest way).
Cheers
Tom
--
You received this
On Thu, 2011-12-08 at 21:04 -0800, ziggi wrote:
> Maybe has another way to do this?
iequal, icontains ...
--
regards
Kenneth Gonsalves
--
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@googlegrou
Hi!
I found only way to ordering query results ignorecase by using :
Spam.objects.extra(select={'eggs_upper':'uppper(eggs)',order_by['eggs_upper']})
Maybe has another way to do this?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to t
I am not asking the definition here
see my website architecture requirement is having all the cod base on a
single application and for all application is using a single database now
need to maintain and develop a application .
ex- Multiple Application Users access the same database and applicatio
On Thu, Dec 8, 2011 at 2:25 PM, pritesh modi wrote:
> Hi guys
>
> Any one suggest me that how saas architecture based
> application is developed in django.which pattern and architecture way whole
> application is developed? also application to be pluggable can be reusable
> and a
On Fri, Dec 9, 2011 at 10:54 AM, Tsung-Hsien wrote:
> Hello
> If I use register page to create user, the string of username and
> email displays u'' on command line, and if I create user on
> command line, the string of username and email display ''. the
> difference is one has the 'u' and
Hello
If I use register page to create user, the string of username and
email displays u'' on command line, and if I create user on
command line, the string of username and email display ''. the
difference is one has the 'u' and the other doesn't.
The important thing is:
When I want to fil
On Thu, Dec 8, 2011 at 8:45 PM, wgis wrote:
> Ian Clelland, it worked! Thanks a lot for your perseverance
>
> Tom's secret sauce it's not working, unfortunately =(
> Just (Carrots, Flavour, 3.0)
> I guess since some 'contexts' don't have an associated thing-vote, the
> filter will cut them off.
>
@Mathew ,am sorry i don't know is it safe or not,Its the one of the
question I wished to ask to some one.I think most of the applications use
ajax get methods ,since its faster.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this gro
On 09-12-11 02:23, Mario Gudelj wrote:
I think you have to add "from views import *" to urls.py and make sure
you have a method called contact in your view.
Doing a "star import" is almost always a bad idea. You don't know what
you're importing. And you can override variables by accident that
On 09-12-11 01:28, Jim Byrnes wrote:
from django.conf.urls.defaults import *
from mysite import views
from mysite.views import hello, current_datetime, hours_ahead, display_meta
from django.contrib import admin
from mysite.contact import views
from mysite.books import views
admin.autodiscover()
34 matches
Mail list logo