All the Mozilla sites are open source. Start with the presentation I gave at
djangocon.eu here:
https://github.com/andymckay/presentations/tree/master/djangoconeu-2011
On 2011-06-20, at 4:42 AM, benregn wrote:
> Thank you very much. I was not aware of that site.
>
> On Jun 20, 12:48 pm, Kenne
I went through this link , but couldn't really understand where to put
where . A little more help as to how to go about it would be very
helpful .
https://code.djangoproject.com/wiki/DynamicModels
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
On Mon, 2011-06-20 at 22:57 -0700, muzhig wrote:
> I have models: User and Photo
> User can "like" photos. So I have another model, Like, that has
> foreign keys
> to User and Photo.
>
> I cannt figure out howto filter all Users that liked one photo
it would be easier if you paste the models.
-
I have models: User and Photo
User can "like" photos. So I have another model, Like, that has foreign keys
to User and Photo.
I cannt figure out howto filter all Users that liked one photo
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To vie
If I have three different abstract model base classes . . . I'd like
to use them in multiple inheritance, sort of like Mixins. Any
problems with this?
E.g.,
class TaggableBase(models.Model):
. . .
class Meta:
abstract = True
class TimeStampedBase(models.Model):
. . .
class M
On Mon, Jun 20, 2011 at 1:49 PM, Shawn Milochik wrote:
> I know that, whenever someone finds a "bug" in Django they're usually doing
> something incorrectly. Hopefully someone will point out what I need to do to
> make this work.
>
I don't know if it's considered 'correct' or not, but the max_va
Do you remember return user in HttpResponse?
--
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
On Mon, 2011-06-20 at 14:19 -0700, raj wrote:
> I'm not quite sure what you mean. Where would I learn about these
> concepts. Thank you.
http://duckduckgo.com/?q=django+get_profile%28%29
--
regards
KG
http://lawgon.livejournal.com
Coimbatore LUG rox
http://ilugcbe.techstud.org/
--
You received
On Mon, 2011-06-20 at 16:15 -0500, Kevin Miller wrote:
> Can anyone please tell me how to integrate session management with
> django-registration. Google did not help me that much.
do you have this line in settings.py:
TEMPLATE_CONTEXT_PROCESSORS = (
'django.core.context_processors.request',
To get keywords from your url, take a look at self.kwargs.
Remember you are working with a Class now, and keeping that in mind is
fundamental to not getting frustrated with the new CBVs.
get_object() is a method that can be overridden by subclasses. Browse
the source code for the CBVs to and try t
PS: Django 1.3
--
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/-/Moc8-Pa5qJ4J.
To post to this group, send email to django-users@googlegroups.com.
To unsubscr
I can't seem to figure out what is causing this: According to the following
2 models
and the 'python manage.py shell' session shown after them, I am getting 2L
as a
return value from a certain call when I would expect u'redhat 5.6' or
similar.
If anyone has any ideas, please let me know. I am
Django automatically calls get_object() to get the object that needs to be
updated by your form.
There is a default get_object() method in the SingleObjectMixin that just
gets the object based on the "model" and the "pk" that's passed in:
https://code.djangoproject.com/browser/django/trunk/djan
On Mon, Jun 20, 2011 at 4:25 PM, Nan wrote:
>
> Hm, I'm not worried about receiving a valid response from the third-
> party API, just about testing the value of the "msg" parameter that's
> passed into it. I need to test the msg parameter because it is in
> turn essentially a proxy for which st
On Tue, Jun 21, 2011 at 7:03 AM, swiharta wrote:
> I noticed the feeds at http://djangoproject.com/community have not
> updated for a couple days. This probably isn't the right place to
> report it.
Hi,
This is probably related to the outage on djangoproject.com that we
had over the weekend. I'l
Hm, I'm not worried about receiving a valid response from the third-
party API, just about testing the value of the "msg" parameter that's
passed into it. I need to test the msg parameter because it is in
turn essentially a proxy for which state was reached in my_view.
my_view is actually a grea
I noticed the feeds at http://djangoproject.com/community have not
updated for a couple days. This probably isn't the right place to
report it.
--
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@goo
Thanks for the quick reply, Shawn!
The reason I wanted to use Django was so that I could leverage the ORM to
allow users to do arbitrary SQL filtering/grouping before the data gets
saved onto the production DB.
Assuming a 1.5 million lines CSV file (which is probably the smallest file
users would
Glad it worked!
Took me a while to figure this out the first time as well.. It was either
this, or a 4 hour wait for cygwin ;o
On Mon, Jun 20, 2011 at 11:23 PM, T4 Phage wrote:
> Thanks!
>
> The pre-compiled MySQL installer worked perfectly.
>
> Thanks again.
>
>
>
>
>
>
> On Jun 20, 2:48 pm, "
On Mon, Jun 20, 2011 at 5:16 PM, raj wrote:
> Sorry, can you give me more details. What other things would I have to
> do to make these changes? thank you.
>
> On Jun 20, 3:08 am, Kenneth Gonsalves wrote:
>> On Mon, 2011-06-20 at 00:03 -0700, raj wrote:
>> > Ya i got that working. Just another qu
Thanks!
The pre-compiled MySQL installer worked perfectly.
Thanks again.
On Jun 20, 2:48 pm, "Cal Leeming [Simplicity Media Ltd]"
wrote:
> A quick Google search brought up this:
>
> http://www.fuyun.org/2009/12/install-mysql-for-python-on-windows/
>
> You can also use a pre-compiled MySQL
On Mon, Jun 20, 2011 at 3:52 PM, Nan wrote:
> I'm not testing the third-party service. I need to test *what I send
> to them*. I.e. that the output of my_view is correct. The trouble is
> that neither my_view nor the API call actually returns the output that
> I need to check.
>
> Does that mak
Here's what I came up with, in case someone else finds this useful.
I'm quite proud, actually.
from django.core.management.base import BaseCommand, CommandError
from hostdb.models import Device, Interface
def sanitized_value(v):
if v == None:
return ""
return v
class Command(Bas
A quick Google search brought up this:
http://www.fuyun.org/2009/12/install-mysql-for-python-on-windows/
You can also use a pre-compiled MySQL MSI install:
http://www.codegood.com/archives/129
Hope this helps
Cal
On Mon, Jun 20, 2011 at 10:01 PM, T4 Phage wrote:
> Hello
>
> I am trying to u
On Mon, Jun 20, 2011 at 10:32 PM, Shawn Milochik wrote:
> Is it just me or are we having a sudden spurt of e-mail that goes like
> this:
>
>Q: How do I
>A: You do X.
>
>Q: How do I do X?
>A: You use Y.
>
>Q: How do I use Y?
>
Yup, I was just thinking the same thing.
>
> I'
I don't see where Django comes in -- at least not for the core of the
app. Python certainly, with the xlwt and xlrd modules being incredibly
helpful.
Secondly, I'd use MongoDB (via pymongo) to store the temporary data,
because I wouldn't bet a nickel that you'll get data in a consistent
forma
Help I am trying to use a generic view, UpdateView, to update a
form. The documentation on most of Django is great but for class-
based generic views it is sorely lacking in examples to illustrate the
changes from function views, and I am confused and frustrated.
A couple of my code snippets:
Hello
I am trying to use Django with mySQL. I have edited the settings.py
file in my project to point it towards the correct database but when I
try to use "manage.py syncdb" I get an error message that tells me
that there is no module named MySQLdb. I tried to install mySQLdb by
installing MySQ
Hello, everyone.
I'm trying to develop a web app to rid colleagues of mine of the "SAP ->
Wordpad -> Excel -> Access -> Excel" workflow by offering them django
instead.
I'd like to allow them to upload csv-like text files to an app in our
intranet that would load the data onto a temporary DB tabl
Is it just me or are we having a sudden spurt of e-mail that goes like this:
Q: How do I
A: You do X.
Q: How do I do X?
A: You use Y.
Q: How do I use Y?
I'm convinced that these people are either trolls or inherently
"un-helpable," unless you want to write their code for
You could have easily answered your own question by reading the
documentation and/or experimenting, and/or looking at the 10 million posts
about database structuring in Google.
If you lack the capacity to do this, then I'd find another profession tbh.
Cal
On Mon, Jun 20, 2011 at 8:06 AM, raj wr
I'm not quite sure what you mean. Where would I learn about these
concepts. Thank you.
On Jun 20, 3:10 am, Kenneth Gonsalves wrote:
> On Mon, 2011-06-20 at 00:06 -0700, raj wrote:
> > Just wondering something. I have an idea to build a social networking-
> > type website. I'm just trying to pictu
Sorry, can you give me more details. What other things would I have to
do to make these changes? thank you.
On Jun 20, 3:08 am, Kenneth Gonsalves wrote:
> On Mon, 2011-06-20 at 00:03 -0700, raj wrote:
> > Ya i got that working. Just another quick question, the django auth
> > system took care of
Hi all,
I am in the process of finishing up an app. However, I just cannot
integrate django-registration and sessions properly. I can allow a
user to register and also log in. But
I am a bit confused in getting in to work with sessions. Eg. I want to
get information based on the user that is logge
Thanks all.
For anyone coming across this later, some enlightening noodling. All sorts
of good
stuff in there, as Shawn indicated!
>>> from hostdb.models import Device
>>> dir(Device._meta)
['__class__', '__delattr__', '__dict__', '__doc__', '__format__',
'__getattribute__', '__hash__', '__ini
I am trying to send email with HTML and embadded image. Email sending
working fine and its also attaching the image in email but its not
showing the image in HTML (inline). I used Content:ID in view and cid
in template but no success :(. I explore so many forms and apply
solutions but in vain pleas
I know that, whenever someone finds a "bug" in Django they're usually
doing something incorrectly. Hopefully someone will point out what I
need to do to make this work.
However, this is looking like a legitimate bug to me.
http://dpaste.com/hold/556603/
Environment:
Django: (1, 3, 0, 'fin
I'm not testing the third-party service. I need to test *what I send
to them*. I.e. that the output of my_view is correct. The trouble is
that neither my_view nor the API call actually returns the output that
I need to check.
Does that make sense?
On Jun 20, 1:59 pm, Daniel Roseman wrote:
>
On Mon, Jun 20, 2011 at 08:54:14AM -0700, Jeff Blaine wrote:
> I'd like to make use of a field's verbose_name in some code instead of
> duplicating that sort of info. Can someone show me how?
>>> SomeModel._meta.get_field(field_name).verbose_name
--
Kirill Spitsin
--
You received this message
Hi
I was just super wowed by this Google Talk about GQuery (GWTQuery).
gwtquery.com
http://www.youtube.com/watch?v=sl5em1UPuoI
I am wondering if anyone is developing something similar for django? I
really hate Java and love python, but I love the idea of developing the
JQuery into the django cod
Heck Ya, thanks for the reply. I am already pouring over the examples. It is
almost as it was made just for me, aww :)
--
Bringing game to younix
Bust0ut Entertainment ---
PureBreedDefense.com --> TheLinuxGame.com --> PBDefence.com
"Finding the exit without looking"
--
You received this messa
On Monday, June 20, 2011 6:12:15 PM UTC+1, Surgemcgee wrote:
>
> Hey Gang, I am hoping that a few here can point me in the right direction.
> I have a online game that posts data to a server. The server
> broadcasts the information
> back to all of the clients via another post to the clients IP add
On Monday, June 20, 2011 6:07:59 PM UTC+1, Nan wrote:
>
> In most situations, my app, upon receiving an HTTP request, sends data
> to a third-party API, and returns an empty HttpResponse. I need to
> test that the correct data is sent to the third-party API based on
> internal application state
On 06/20/2011 01:36 PM, Jeff Blaine wrote:
On Monday, June 20, 2011 11:56:00 AM UTC-4, Shawn Milochik wrote:
On 06/20/2011 11:54 AM, Jeff Blaine wrote:
> I'd like to make use of a field's verbose_name in some code
instead of
> duplicating that sort of info. Can someone show me h
Herman ,thanks a lot
--
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.com.
For more options,
Thanks to everyone (Bruno, Tom, Ethan and Masklinn) for the extremely
informative and very helpful replies.
I really appreciate all of the professional help.
I have a lot to research and need to practice some of these newly
learned techniques/concepts... I may be back with more (this time,
Django
On Monday, June 20, 2011 11:56:00 AM UTC-4, Shawn Milochik wrote:
>
> On 06/20/2011 11:54 AM, Jeff Blaine wrote:
> > I'd like to make use of a field's verbose_name in some code instead of
> > duplicating that sort of info. Can someone show me how?
> >
>
> your_object._meta.verbose_name
>
> Check o
Hey Gang, I am hoping that a few here can point me in the right direction.
I have a online game that posts data to a server. The server
broadcasts the information
back to all of the clients via another post to the clients IP addresses.
Now, while processing the POST data is not a problem, how, or
In most situations, my app, upon receiving an HTTP request, sends data
to a third-party API, and returns an empty HttpResponse. I need to
test that the correct data is sent to the third-party API based on
internal application state. I'm perplexed as to how to intercept this
data in a unit test.
It sounds as though Sentry is the simplest solution then. As its
written (and solid) its a lot easier then writing my own exception
middleware - and the extra functionality will do no harm (and might be
more useful than I think). Sentry it is. Thanks for the replies.
On Jun 19, 7:54 pm, Brian Bout
On 06/20/2011 11:54 AM, Jeff Blaine wrote:
I'd like to make use of a field's verbose_name in some code instead of
duplicating that sort of info. Can someone show me how?
your_object._meta.verbose_name
Check out _meta in manage.py shell -- lots of good stuff in there.
--
You received this me
I'd like to make use of a field's verbose_name in some code instead of
duplicating that sort of info. Can someone show me how?
--
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
Dear all
We have an opening for a Django/Python developer. Role is based in the
Midlands, UK. Great environment, great team. Get in contact for more
details.
Thanks
Rich
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, se
On Mon, Jun 20, 2011 at 2:01 PM, Marc Aymerich wrote:
> Hi,
> Just right now I installed the django-celery with rabbitMQ and I'm
> running this simple tests.
>
> I define this task on my contacts app:
>
> # contacts/tasks.py:
> from celery.decorators import task
> @task()
> def add(x, y):
> retu
Hi,
I would suggest the view. So, get the info from the form
form = YourForm(request.POST)
Even better, create another module with utility functions and call your
login method from the view.
On Sun, Jun 19, 2011 at 5:22 PM, Carsten Jantzen wrote:
> Hi
>
> I have started to build a application
Try doing this in your models.py:
def get_profile(self):
...your code to get the profile for a the user...
User.get_profile = get_profile
On Jun 20, 9:54 am, gontran wrote:
> Hello evreybody,
>
> I wonder how to deal with many user profiles.
> I need to store different informations depend
Hello Jaspreet,
On Mon, Jun 20, 2011 at 03:54:47PM +0530, jaspreet kaur wrote:
> i want to run an application
> and i have a documentation of the application
> localhost is working but localhost/django is not working
> it shows an error:Forbidden
>
> You don't have permission to access /django on
Hi,
Just right now I installed the django-celery with rabbitMQ and I'm
running this simple tests.
I define this task on my contacts app:
# contacts/tasks.py:
from celery.decorators import task
@task()
def add(x, y):
return x + y
Then, I execute it with python shell:
>>> from contacts.tasks im
Thank you very much. I was not aware of that site.
On Jun 20, 12:48 pm, Kenneth Gonsalves wrote:
> On Mon, 2011-06-20 at 00:11 -0700, benregn wrote:
> > I was wondering if there are any complete websites using Django that
> > are open source, i.e. it's possible to browse all its files, structure
Hi there,
I am getting this error on my code execution:
Request Method: GET
Request URL: http://127.0.0.1:8000/admin
Django Version: 1.3
Exception Type: ImportError
Exception Value:
cannot import name Paginator
Exception Location: /Library/Frameworks/Python.
framework/Versions/2.7/
lib/py
On Mon, 2011-06-20 at 00:11 -0700, benregn wrote:
> I was wondering if there are any complete websites using Django that
> are open source, i.e. it's possible to browse all its files, structure
> and code.
http://www.djangosites.org/with-source/
--
regards
KG
http://lawgon.livejournal.com
Coimba
On Mon, Jun 20, 2011 at 12:21, jaspreet kaur wrote:
> please tell me how to place mytemplates folder in template path of django
> means what is the meaning of template path of django
Please Jaspreet, this is clearly stated in the documentation and I see
no need to spam the django-users email list
Hey,
I was wondering if there are any complete websites using Django that
are open source, i.e. it's possible to browse all its files, structure
and code. It would, of course, be preferable that the website/web app
follows best practice.
Thanks,
benregn
--
You received this message because you
Yet again, for the 10 billionth time.. Paste us your configs!
On a side note, aeriously, if you don't even have the confidence to look
through the logs/docs and figure this out, nor the common sense of what
information to give when requesting help, i recommend you stay as far away
from programming
hii everyone ...
i want to run an application
and i have a documentation of the application
localhost is working but localhost/django is not working
it shows an error:Forbidden
You don't have permission to access /django on this server.
Apache/2.2.16 (Ubuntu) Server at localhost Port 80
please he
hii everyone
i am new to django
i am doing application of django
please tell me how to place mytemplates folder in template path of django
means what is the meaning of template path of django
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To po
Hello evreybody,
I wonder how to deal with many user profiles.
I need to store different informations depending on the status of my
users.
I have a generic UserProfile class:
class UserProfile(models.Model):
user = models.OneToOneField(User, primary_key=True)
role = models.CharField(max_
On Mon, 2011-06-20 at 00:06 -0700, raj wrote:
> Just wondering something. I have an idea to build a social networking-
> type website. I'm just trying to picture how the mysql backend would
> look. For example, if an individual were to have "friends", would i
> need to edit the user class in django
On Mon, 2011-06-20 at 00:03 -0700, raj wrote:
> Ya i got that working. Just another quick question, the django auth
> system took care of all the login/logout pages. Now that i have a
> changed user class up and running, will django automatically adapt to
> the new class? Like, in the html, if it s
Hey guys,
Just wondering something. I have an idea to build a social networking-
type website. I'm just trying to picture how the mysql backend would
look. For example, if an individual were to have "friends", would i
need to edit the user class in django, and add a many-to-many field?
I'm confuse
Ya i got that working. Just another quick question, the django auth
system took care of all the login/logout pages. Now that i have a
changed user class up and running, will django automatically adapt to
the new class? Like, in the html, if it says {% user.is_authenticated
%}, will it automatically
71 matches
Mail list logo