Hi,
I have Django model and in one of the fields I need to store a regex string
that I can later use.
class Foo(models.Model):
name = models.CharField(max_length=30, unique=True)
regex_string = models.TextField()
So for example, the regex_string field might be set to:
r'\d{2}'
I the
I have following:
= urls.py
from django.conf.urls.defaults import *
from django.views.generic.dates import DateDetailView
from blog.models import Article
entry_info_dict = {
'queryset': Article.objects.all(),
'date_field': 'pub_date',
}
urlpatterns = patterns('django.views.gener
As pointed by the error message you are getting, the url you tried did not
match any of the urls django is aware of.
For using any Model in the admin, you need to register it with the admin. As
evident from your url, you are trying to use a model named Choice under
polls app. But you have not regi
On Thu, Oct 13, 2011 at 12:12 PM, Marc Aymerich wrote:
> I'm not sure if SSDs can speed up a DB server so much. Now a days the
> 'normal' enterprise server has 24GB of memory, so at least that your
> database is a huge one, you don't need to constantly query your disks
> anymore.
the big (BIG) di
On Oct 13, 2011, at 5:06 PM, Maksymus007 wrote:
> ... do not like SOAP, and it's DJango problem, not SOAP,
The S stands for Simple
http://wanderingbarque.com/nonintersecting/2006/11/15/the-s-stands-for-simple/
--
You received this message because you are subscribed to the Google Groups
"Djang
On Oct 13, 2011, at 7:12 PM, Marc Aymerich wrote:
> I'm not sure if SSDs can speed up a DB server so much.
It does. .
http://www.fusionio.com/
> Now a days the
> 'normal' enterprise server has 24GB of memory, so at least that your
> database is a huge one, you don't need to constantly query yo
On Wed, Oct 12, 2011 at 10:52 PM, ydjango wrote:
> What do you think?
>
> http://www.cringely.com/2011/10/the-second-coming-of-java/
>
> "When SSDs gain enough capacity there will be a shift from the Ruby
> world back to the Java world. Not for prototyping, because, well, it’
>
I'm not sure if S
Le 13 oct. 2011 à 17:06, Maksymus007 a écrit :
>
>
> On Thu, Oct 13, 2011 at 4:59 PM, Javier Guerra Giraldez
> wrote:
> On Thu, Oct 13, 2011 at 9:52 AM, Maksymus007 wrote:
> > must works with some other solutions where choice of using SOAP over REST
> > was made years ago.
>
> often because
> Your view doesn't seem to have anything at all to do with your template. The
> only thing you pass to the template context is a form, which isn't mentioned
> at all in the template, and you don't pass the only variable which is used
> on the template, which is "campaigns".
Yeah, you are great,
> Your view doesn't seem to have anything at all to do with your template. The
> only thing you pass to the template context is a form, which isn't mentioned
> at all in the template, and you don't pass the only variable which is used
> on the template, which is "campaigns".
Yeah, you are great,
On Thu, Oct 13, 2011 at 3:52 PM, Maksymus007 wrote:
>
> You sound like you never worked for anything that must works with some other
> solutions where choice of using SOAP over REST was made years ago.
It may sound like that, but my current django project provides a SAML
based Identity Provider,
On Thursday, 13 October 2011 16:36:21 UTC+1, Piotr Hosowicz wrote:
>
> I am writing my personal contact book and now want to make wish list
> for Christmas. I cannot get simplest template working, the template
> is:
>
> www.w3.org/TR/html4/loose.dtd">
>
>
>
> Kampanie
>
>
>
> {% for
On Thu, Oct 13, 2011 at 3:51 PM, Kurtis Mullins
wrote:
> I wish I could come work for you guys. I'd love to see London, haha. Good
> luck to you!
>
Not today you wouldn't, it's all grey, overcast and drizzling!
Cheers
Tom
--
You received this message because you are subscribed to the Google G
I am writing my personal contact book and now want to make wish list
for Christmas. I cannot get simplest template working, the template
is:
Kampanie
{% for campaign in campaigns %}
{{ campaign.name }}
{% endfor %}
The model is :
class Campaign(models.Model):
name = models.
On Thu, Oct 13, 2011 at 4:59 PM, Javier Guerra Giraldez
wrote:
> On Thu, Oct 13, 2011 at 9:52 AM, Maksymus007
> wrote:
> > must works with some other solutions where choice of using SOAP over REST
> > was made years ago.
>
> often because some years ago, REST wasn't a buzzword-compliant
> acronym
On Thu, Oct 13, 2011 at 9:52 AM, Maksymus007 wrote:
> must works with some other solutions where choice of using SOAP over REST
> was made years ago.
often because some years ago, REST wasn't a buzzword-compliant
acronym. anybody who suggested CRUD-over-HTTP (*) would've been
quickly vetoed out
Possible? Has anyone prototyped it or put any thought into it? Is it
something people would be interested in?
I'm pretty new to this technology but it's a big thing at my
university (knoesis.wright.edu). I'd have some great people to consult
with if this would be a good personal, research project
Am 13.10.2011 15:05, schrieb Tom Evans:
Only people who are brought up on Java EE/.NET believe SOAP is
useful/good. The rest of the world (yes, even us Enterprise with a big
E) prefer simpler REST interfaces.
Full ack! :)
--
Bastian Ballmann / Web Developer
Notch Interactive GmbH / Badenerstr
On Thu, Oct 13, 2011 at 3:05 PM, Tom Evans wrote:
> On Thu, Oct 13, 2011 at 1:42 PM, Maksymus007
> wrote:
> > What my and company I work for experience show is that Java should simply
> by
> > used to solve other problems that Django or RoR solves.
> > Developing medium-sized web-app in Django i
Look at template inheritance:
https://docs.djangoproject.com/en/1.3/topics/templates/#template-inheritance
2011/10/13 galgal :
> I need to place a form in all my subsites and home page. It's placed on
> right column. It's action is "/". If there are some errors I must display
> them.
> I made Fo
I wish I could come work for you guys. I'd love to see London, haha. Good
luck to you!
On Thu, Oct 13, 2011 at 3:29 AM, Tim Abbott wrote:
> Morning guys,
>
> i will cut right to it - I need a Python developer ASAP for a contract on
> client site in London. I know this is a Django mailing list bu
Django's User Authentication Module is pretty dependent upon it's set of
assumption, including that the User data would be stored in a specific
table. Without any experience in this matter, I would assume it'd be a
difficult task to try to modify it to use your own table. However, you can
write you
I tend to split mine up based upon URLs. For example, all
User-Authentication stuff I may put into a 'user' app. All misc. things that
don't seem to have a proper place might go into a 'core' app. Some times
this is especially helpful as you can just include an entire App in your
main urls.py and w
On 13/10/2011 13:15, Jiss wrote:
> I am new to django. Can I use my own table (say) 'User' instead of
> 'auth_user' table (keeeping all other tables for django
> authentication ) ?.
>
Why would you want to do that?
Keep everything standard and put the fields you want in a UserProfile
of your own
On Thu, Oct 13, 2011 at 7:04 AM, Petite Abeille wrote:
> (...)
>
> How To Write Unmaintainable Code.
> http://thc.org/root/phun/unmaintain.html
>
> Tangentially related:
>
> Big Ball of Mud
> http://www.laputan.org/mud/
>
>
I had read Big Ball of Mud before, but "How to Write Unmaintainable Code"
Something I found but never had the time to try:
http://code.google.com/p/uml-to-django/
Hope it helps.
On Oct 13, 6:34 am, Apurv Verma wrote:
> Hii all,
> I am making a web application in Django. What tools are available to
> create class diagrams which can then later autogenerate the code
>
On Thu, Oct 13, 2011 at 12:34 AM, Apurv Verma wrote:
> I am making a web application in Django. What tools are available to
> create class diagrams which can then later autogenerate the code
> template for it.
i do it the other way: generate diagrams from the models definition.
(django-extensio
>From command line, launch python then try
Import MySQLdb
If that fails, you've not installed MySQLdb module. Check docs or
google; it's a separate install since django is db agnostic.
From: django-users@googlegroups.com
[mailto:django-users@googlegroups.com] On Behalf Of Kurtis Mullins
S
> On Wed, Oct 12, 2011 at 9:17 AM, lankesh87 wrote:
> > I am developing a web application where i need ajax like features.
> > But I don't want to use ajax, so my question is- "is there any way to
> > perform ajax like functions in django?"
>
Use Flex, it's easier.
--
You received this message
+1 for what Tom said.
Django is perfectly capable at working at every level of the web. While it's
true that once you start scaling at super high loads that you start having to
do some lower level stuff to cope, the same is true of any application
framework really.
If your shop prefers Java th
On Thu, Oct 13, 2011 at 1:42 PM, Maksymus007 wrote:
> What my and company I work for experience show is that Java should simply by
> used to solve other problems that Django or RoR solves.
> Developing medium-sized web-app in Django is for us big pain in the neck,
> especially when compared to dev
What my and company I work for experience show is that Java should simply by
used to solve other problems that Django or RoR solves.
Developing medium-sized web-app in Django is for us big pain in the neck,
especially when compared to development of other app using
Java + PrimeFaces and all enterpr
I am new to django. Can I use my own table (say) 'User' instead of
'auth_user' table (keeeping all other tables for django
authentication ) ?.
--
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@goog
Morning guys,
i will cut right to it - I need a Python developer ASAP for a contract on
client site in London. I know this is a Django mailing list but I have heard
there are a lot of good pure Python guys on here! Ideally starting on Monday
paying £250 - £320pd. Release date is 27th Jan...
Digit
Hii all,
I am making a web application in Django. What tools are available to
create class diagrams which can then later autogenerate the code
template for it.
thanks,
Apurv
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group
On Thu, 2011-10-13 at 12:04 +0200, Petite Abeille wrote:
>
> On Oct 13, 2011, at 11:11 AM, Bastian Ballmann wrote:
>
> > Why should I code the same functionality in 2 years if I can have it
> in
> > 2 months in a simpler and more readable code?
>
> Job security?
btw, only the dead can come aga
I need to place a form in all my subsites and home page. It's placed on
right column. It's action is "/". If there are some errors I must display
them.
I made Form class etc. I display it via {{ form.as_p }} and designed all.
The problem is - how to put it on all sites? I don't want to make form
On Oct 12, 10:52 pm, Daniel Roseman wrote:
> You'll have to show some code. How are you creating the page object?
hotels =
Hotel.objects.select_related().filter(is_deleted=False).filter(...)...
paginator = Paginator(hotels[:200], items_per_page)
try: page = int(request.GET.get('page', '1'))
exce
Thanks you¡¡¡ I'll try to see if it works
--
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...@googlegroups.co
On Oct 13, 2011, at 11:11 AM, Bastian Ballmann wrote:
> Why should I code the same functionality in 2 years if I can have it in
> 2 months in a simpler and more readable code?
Job security?
How To Write Unmaintainable Code.
http://thc.org/root/phun/unmaintain.html
Tangentially related:
Big B
Is it possible to override how the admin interacts with a particular date
field (for example, to transform it given a user supplied function)?
William
On Thu, Oct 13, 2011 at 5:20 AM, est wrote:
> Hi guys,
>
> I am using Django 1.2 which a model has the following field
>
> my_time = models.Dat
Am 13.10.2011 11:02, schrieb Tom Evans:
# -*- coding: utf-8 -*-
Is that on the first or second line of your file? If not, python will
ignore it, as mentioned in the linked PEP.
It's on the very first line of the tests.py
Greets
Basti
--
Bastian Ballmann / Web Developer
Notch Interactive GmbH
Hi guys,
I am using Django 1.2 which a model has the following field
my_time = models.DateTimeField(default=datetime.datetime.now())
I don't use "auto_now_add=True" because I want it to be editable in admin.
To my horror, Django can't handle timezone.
When adding a new model, this field is usi
@everyone;
I think you've all absolutely hit the nail on the head here, with the fact
of developer time being more expensive than server hardware.
Also - I find it *very* hard to believe that Java would be any faster than a
Python ctypes extension - I think this article is more "wishful thinking
Hey ho,
I think it's funny, because Java's uglyness isn't only depending on it's
slowliness in runtime, but also on it's horrible slowliness in
development and in mastering the art to code and design as complex as
possible.
Why should I code the same functionality in 2 years if I can have it in
2
On Mon, Oct 10, 2011 at 10:03 AM, Bastian Ballmann
wrote:
> Hi all,
>
> I try to use a utf8 string in a Django unit test and have included
> # -*- coding: utf-8 -*-
> but django-admin.py still complaints there is no encoding.
Is that on the first or second line of your file? If not, python will
i
46 matches
Mail list logo