Hi all,
the end of Early bird is on May 2nd, 23:59:59 CEST. We'd like to ask
to you to forward this post to anyone that you feel may be interested.
We have an amazing lineup of tutorials and talks. We have some
excellent keynote speakers and Guido will be with us!
[https://ep2012.europython.eu/p3/
Excellent, thanks for sharing that blog post.
Are you using a setup.py file with buildout? Currently I am not using one.
My buildout.cfg lists all the dependencies and I checkout my source code
from a specific git revision. Afterwards I go into the source code folder
and add local files (i.e. p
Hi. I've been struggling with this problem the whole night and just
couldn't find any solution. I've tried reverse engineering the
template/base.py file, but things are getting ugly. :S
How can I, inside a custom tag class (template.Node), make the parser
render a snippet of html with tags in
On Monday, 30 April 2012 09:03:56 UTC+1, 95felipe wrote:
>
> Hi. I've been struggling with this problem the whole night and just
> couldn't find any solution. I've tried reverse engineering the
> template/base.py file, but things are getting ugly. :S
>
> How can I, inside a custom tag class (te
Hi,
I am working with an existing database where I am unable to change the
schema and having some trouble trying to deal with presenting forms.
The structure in question is as follows and all models are unmanaged.
class Persons(models.Model):
personid = models.BigIntegerField(primary_key=True,
Have you tried changing the THUMBNAIL_STORAGE setting? I haven't done what
you ask for but you should give it a try.
http://thumbnail.sorl.net/reference/settings.html#thumbnail-storage
Domingo, 29 de Abril de 2012 17:27:56 UTC+1, Swaroop Shankar escreveu:
>
> Thanks Kelly, could you tell me wh
On 30-04-12 13:08, Reikje wrote:
Are you using a setup.py file with buildout? Currently I am not using
one. My buildout.cfg lists all the dependencies
Yes, I use a setup.py. For me, a setup.py is for listing hard
dependencies of the code, especially for packages you include in your
buildout.
Dear all,
Each model of my application has an associated template. This template
should be rendered each time that their context changes. So this is an
example to clarify this cryptic explanation:
class ModelA(models.Model):
class ModelB(models.Model):
a = models.ForeignKey(ModelA)
c
On Mon, Apr 30, 2012 at 4:22 PM, Marc Aymerich wrote:
> Dear all,
>
> Each model of my application has an associated template. This template
> should be rendered each time that their context changes. So this is an
> example to clarify this cryptic explanation:
>
> class ModelA(models.Model):
> .
Hi! But then the rendering wouldn't include the loaded templatetags.
And I guess it would be expensive to go through this process a couple times
for each call of the renderer.
On Monday, 30 April 2012 09:24:54 UTC-3, Daniel Roseman wrote:
>
>
>
> On Monday, 30 April 2012 09:03:56 UTC+1, 95felipe
Hi
My apologies: I was running my app from apache, so none of my
changes were reflected!
I'm now running into the development server and trying again all the
login stuff!
Thank you all!
On 04/29/2012 01:59 AM, yati sagade wrote:
Hi
Have you set t
Hi all.
In my LAN I have some files stored in a ftp server, to which I can
access from my computer with:
ftp://username:password@hostname/path/to/files/*
How can I import this files in a Django web-app uploading them directly
from the ftp server?
Thank you.
--
You received this message
Might not be exactly what you need, but want to mention it anyway:
https://bitbucket.org/weholt/djftpd
Regards,
Thomas
On Mon, Apr 30, 2012 at 5:33 PM, orsomannaro wrote:
> Hi all.
>
> In my LAN I have some files stored in a ftp server, to which I can access
> from my computer with:
>
> ftp://u
On 30/04/2012 17:44, Thomas Weholt wrote:
Might not be exactly what you need, but want to mention it anyway:
Thank you very much, but I nedd a ftp client, not a server.
I must build with Django something like this:
http://www.net2ftp.com/
--
You received this message because you are subscrib
On Mon, Apr 30, 2012 at 11:53 AM, orsomannaro wrote:
> On 30/04/2012 17:44, Thomas Weholt wrote:
>>
>> Might not be exactly what you need, but want to mention it anyway:
>
>
> Thank you very much, but I nedd a ftp client, not a server.
>
> I must build with Django something like this:
>
> http://w
It is much better to use Apache for static files than Django. You can still
run DJango for data validation, but all static content is typically served
via Apache. In your virtualhost, you should proxy the /static/ endpoint to
the /static/ folder in Django app.
On Sunday, April 29, 2012 5:39:15
does your configuration allow for running multiple sites?
On Sunday, April 29, 2012 12:01:27 PM UTC-7, Karl Sutt wrote:
>
> Here is my uWSGI command and nginx.conf contents:
>
> uwsgi -- http://www.dpaste.org/aiJuq/
> nginx -- http://www.dpaste.org/bAG0o/
>
> I've used it for a Flask application,
For the past couple of years, cPanel (the most widely deployed hosting control
panel system) has been taking pulse on user demand for native Django support
(similar to their Rails installer). Just saw this note from cPanel devs and
thought some folks here might be interested. This is a great op
I'm trying to execute some raw sql. I found some code that did this:
from django.db import connection
cursor = connection.cursor()
cursor.execute(sql)
data = cursor.fetchall()
But the cursor.execute(sql) is blowing up with:
'Cursor' object has no attribute '_last_executed'
What is the best or p
Hello!
The (if display.max_windows() >= display.windows) works fine to
prevent insert. Behaves as expected.
But is raised even when the row is REMOVED from the edit formset. =/
## Models
class Display(models.Model):
windows = models.IntegerField()
def max_windows(self):
total = self
It looks like the latest version of solr-thumnails or the version that i
have currently installed supports THUMBNAIL_STORAGE. When i checked i could
see a file under the path solr/thumbnail called defaults.py. In this file
there are following options
DEBUG = False
BASEDIR = ''
SUBDIR = ''
PREFIX =
I suggest Nginx to serve your static files, and possibly also as a reverse
proxy to point to your Django with Gunicorn/Apache setup (If you haven't
considered Gunicorn as a production server yet, please do. It is fantastic).
On Mon, Apr 30, 2012 at 11:21 PM, HarpB wrote:
> It is much better to u
It looks like i was using an old version which came with satchmo. Am
currently testing my project with new version.
Thanks and Regards,
Swaroop Shankar V
On Tue, May 1, 2012 at 12:59 AM, Swaroop Shankar V wrote:
> It looks like the latest version of solr-thumnails or the version that i
> have
Okay in the latest version every images generated is getting saved to
cache. My issue is resolved. Thanks all for your kind help :)
Thanks and Regards,
Swaroop Shankar V
On Tue, May 1, 2012 at 1:24 AM, Swaroop Shankar V wrote:
> It looks like i was using an old version which came with satchmo.
Dear djangos,
if you want to hand-in your data anonymously - just send us an email to
django[at]develissimo.com
we really need more data to achieve some meaningful results.
http://develissimo.com/forum/topic/107887/
Cheers,
Raphael
--
You received this message because you are subscribed to th
On Mon, Apr 30, 2012 at 12:46 PM, Larry Martell wrote:
> I'm trying to execute some raw sql. I found some code that did this:
>
> from django.db import connection
> cursor = connection.cursor()
> cursor.execute(sql)
> data = cursor.fetchall()
>
> But the cursor.execute(sql) is blowing up with:
>
>
Hi I'm a total programming newbie!
### INTRO ###
I have been following this tutorial and the timezone outputs confuses
me.
https://docs.djangoproject.com/en/1.4/intro/tutorial01/#playing-with-the-api
And I'm still confused after reading these explanations, I basically
need some really dumbed down
I'm new to using Django and was working my way through the tutorial to get
a better feel of it. I'm stuck on part 3 of the tutorial and the section
where they show you how to use templates. When I hard-code the HttpResponse
object everything works fine, but when I try to use a template it appear
Hi, the delimiters use are using are wrong it should be {% not (%
On Mon, Apr 30, 2012 at 3:41 PM, Zaerion wrote:
> I'm new to using Django and was working my way through the tutorial to get
> a better feel of it. I'm stuck on part 3 of the tutorial and the section
> where they show you how to u
Nevermind. I'm just an idiot. I had used parenthesis instead of curly
braces. Sorry!
On Monday, April 30, 2012 1:41:25 PM UTC-7, Zaerion wrote:
>
> I'm new to using Django and was working my way through the tutorial to get
> a better feel of it. I'm stuck on part 3 of the tutorial and the sectio
Yup, I caught it just after I posted it and spent about 30 minutes trying
to figure out what I did wrong. Thanks for the help! :)
On Monday, April 30, 2012 2:05:37 PM UTC-7, Gerald Klein wrote:
>
> Hi, the delimiters use are using are wrong it should be {% not (%
>
> On Mon, Apr 30, 2012 at 3:41
No problem eveyone has one of those moments
On Mon, Apr 30, 2012 at 4:07 PM, Zaerion wrote:
> Yup, I caught it just after I posted it and spent about 30 minutes trying
> to figure out what I did wrong. Thanks for the help! :)
>
> On Monday, April 30, 2012 2:05:37 PM UTC-7, Gerald Klein wrote:
>>
On Mon, Apr 30, 2012 at 2:32 PM, Larry Martell wrote:
> On Mon, Apr 30, 2012 at 12:46 PM, Larry Martell
> wrote:
>> I'm trying to execute some raw sql. I found some code that did this:
>>
>> from django.db import connection
>> cursor = connection.cursor()
>> cursor.execute(sql)
>> data = cursor.
I am not entirely sure what you mean by that. If you mean the nginx
equivalent of Apache VirtualHosts then the nginx wiki explains it quite
nicely http://wiki.nginx.org/ServerBlockExample. Is that what you meant?
Karl Sutt
On Mon, Apr 30, 2012 at 7:04 PM, easypie wrote:
> does your configurati
On Mon, Apr 30, 2012 at 6:26 PM, Dennis Lee Bieber
wrote:
> On Mon, 30 Apr 2012 15:29:08 -0600, Larry Martell
> declaimed the following in
> gmane.comp.python.django.user:
>
>>
>> But in django I am doing this:
>>
>> from django.db import connection
>> cursor = connection.cursor()
>> cursor.execu
Hi,
I am shifting to Django 1.4 and want to use the timezone support (for which
I want to use {% load tz %} in my templates). The problem is that I have
aroudn 30-40 templates, and manually adding these tags to each template is
a pain. Is there a way by which I can do this loading by default in al
On 04/30/2012 09:21 PM, Rajat Jain wrote:
Hi,
I am shifting to Django 1.4 and want to use the timezone support (for
which I want to use {% load tz %} in my templates). The problem is that
I have aroudn 30-40 templates, and manually adding these tags to each
template is a pain. Is there a way by
I have been trying a lot but could not make out why it happens,
class FortressUserAdmin(admin.ModelAdmin):
list_display(. . . , get_my_schema)
def get_my_schema(self, obj):
sql_query = "select prop_val from customer_property where customer_id = %d
and property_value like 'SCHEM
Hi All,
I'm building a blog, with models "Post" and "Image" (each blog post can
have multiple images; they're related by ForeignKey) and I'm trying to
implement the Dojo rich editor in my admin site by following the example
here:
https://gist.github.com/868595
However, the rich editor is not
I have a Student model that stores information about a student,
including the student's teacher.
The teacher's information is stored in the Employee model that
inherits from the Person Model.
I am having trouble figuring out how to query the teacher, when a
student id is passed as an ajax argument
You can get teacher and parents objects from student instance.
student.teacher and student.teachers.all()
01.05.2012 11:46 пользователь "LJ" написал:
> I have a Student model that stores information about a student,
> including the student's teacher.
> The teacher's information is stored in the E
First of all. Student.objects.filter(pk=id) returns QuerySet not
instance of Student.
If you want get current student use
get_object_or_404()(https://docs.djangoproject.com/en/1.4/topics/http/shortcuts/#get-object-or-404)
or Student.objects.get(pk=id).
Teacher and parents can bee retrived via Stud
42 matches
Mail list logo