It is good to see some subscribers this early on. Thank you. I have
rolled out the updates for Tutorials and set the foundation for the
Review system by starting a list of packages I frequently use, and
hope to later review. I hope to have the full review system live by
the end of this week.
Th
To do this use serializers or you need to make it a plain text iterate
over objects and make it a string and return httpresponse as a text.
On Jan 29, 7:24 pm, CareerDhaba tech wrote:
> Hi all,
>
> I am in a bit of a jiffy and need some guidance. Here is the issue:
>
> I am creating a basic Q&A a
hi,
in admin I have this code:
class ChildAdmin(admin.ModelAdmin):
def has_change_permission(self, request,obj=None):
# obj is the child and we fetch the project associated with the
child through
# the area.
if request.user.is_superuser:
return True
unicode?
On 25 January 2012 07:43, jurgen wrote:
> In my admin interface, I can create a database entry which contains
> HTML using TinyMCE. I do this to create publication entries for my
> website. In the database, a publication entry stores entities using
> numeric encoding. To render a list o
On 30/01/2012, at 9:36 AM, Russell Keith-Magee wrote:
>
> On 28/01/2012, at 9:06 PM, Sam Lai wrote:
>
>> Heads-up to whoever is in charge of this domain - it has expired and
>> is now redirecting to a GoDaddy domain parking page.
>
> Hi Sam,
>
> Thanks for the heads up. Django Snippets isn't
On 28/01/2012, at 9:06 PM, Sam Lai wrote:
> Heads-up to whoever is in charge of this domain - it has expired and
> is now redirecting to a GoDaddy domain parking page.
Hi Sam,
Thanks for the heads up. Django Snippets isn't an official Django resource, but
it's been around for a while and many
On 29/01/2012, at 4:05 PM, Jack wrote:
> Hello,
>
> I have a question on Python(django)
>
> Does python(django) have an official database driver to access
> SQLFire? Or is there any roadmap to deliver an official database
> driver?
Unfortunately, the answer is no to both.
The only officially
Use the Django Debug Toolbar, it shows all kinds of things. For
templates, it shows the names of all the templates that make up the
given page as well as which tags are used on the page.
With DDT, you don't have to annotate (and un-annotate) anything.
http://pypi.python.org/pypi/django-debug-tool
On Jan 20, 10:12 am, newme wrote:
> user = User.objects.filter(pk="")
> user is a QuerySet
>
> every time i call user[0], i returns a different reference.
>
> maybe it should be a python question.
> i want to know i QuerySet does that.
The reason is that Django does not do "instance caching".
You should not use www-data as your user. There is little reason for
allowing any access to the database for www-data user. The user in
settings.py refers to PostgreSQL user. You should set up a dedicated
postgresql user, and a password for that user. Use those in your
settings.py.
The most likely
perhaps something from this post can help -
http://mariogudelj.tumblr.com/post/16717808643/custom-upload-to-path-in-django
On 22 January 2012 21:41, Tony Kyriakides wrote:
> (in the terminal)
> python manage.py syncdb
>
> On Jan 21, 8:57 am, cha wrote:
> > Hello I reading this tutorialhttps://
That should work. You must have some unusual setting in settings.py. Can
you post time zone references from that file?
On 20 January 2012 09:03, Cyd wrote:
> In the tutorial here:
>
> https://docs.djangoproject.com/en/1.3/intro/tutorial01/
>
> I get no errors up until the p.save() at the end
The only way to achieve this would be to pass the template path, inside the
view, to the template and render it within the template.
Like:
d = {'profile':profile:'template_path':"console/account-profile.html"}
return render_to_response('console/account-profile.html', d)
-m
On 29 January
Same :)
On 29 January 2012 19:11, Anler Hernandez Peral wrote:
> you have one subscriber over here and waiting to see more posts ;)
>
> --
> anler
>
>
>
> On Sat, Jan 28, 2012 at 9:35 PM, Kevin wrote:
>
>> Hello Everyone,
>>
>> For sometime now I have been itching to create a Python blog, and
You can exclude certain fields from the form using exclude['fieldname'] in
that FormName class
On 28/01/2012 6:08 AM, "hack" wrote:
> Hello,
> I am new to Python and have a Java background.
>
> I have created a bunch of models, and forms using ModelForm:
> class FormName(ModelForm):
>cla
Going forward I'll make sure to post only once. I don't use these Google
Groups mailing lists that much besides the occasional community question so
I'll make sure not to spam you all next time! : /
Yes well I bought my laptop through my school (Virginia Tech) and we had a
few options for engin
Hi, I'm with a basic doubt.
I want to make a Select Form using ModelChoiceField in a webpage. The
data is being filled OK, but I don't know how to use the selected
item.
For instance, I want to call a page "/dashboard/{{ projetoURL }}/
{{ selectedItem }}/" where the 'selectedItem' is an option chos
I have two models
http://paste.ideaslabs.com/show/BN0e2z4NSa
I want to print a list of ads (title,slug, and thumb_photo)
How can I make this list, since the key is reverse?
Something like this SQL: http://paste.ideaslabs.com/show/Iw8ii2noz
Sorry for my bad English.
I'm from brazil
--
You re
On Saturday, 28 January 2012 21:41:13 UTC, Squant wrote:
>
> Hello,
> I've created a simple ChoiceField for my app with two items. I need to
> somehow query which choice was made from the user so I can pass the
> appropriate context to my template. What would be an example of how I
> can do suc
On Sunday, 29 January 2012 05:34:50 UTC, Mike wrote:
>
> In a project I'm working on I have a status bar at the top of the webpage
> that will render data using template tags. The status bar will be
> displayed on all of my views, so I want to put the html code in my base
> template. The base
Hello,
I have a question on Python(django)
Does python(django) have an official database driver to access
SQLFire? Or is there any roadmap to deliver an official database
driver?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this
syncdb will not remake tables that are already made. For that you will
have to pipe the output of:
$ python manage.py resetsql
through your database backend. Then try restarting the server and looking
at your admin.
On Sat, Jan 28, 2012 at 10:15 PM, Alec Taylor wrote:
> Going through the tut
Hi all,
I am in a bit of a jiffy and need some guidance. Here is the issue:
I am creating a basic Q&A application, where a question pops up for the
user, along with a form to submit the answer. Depending on the type of
question, the input of the form changes (ie if its a multiple choice, its
rad
I'm going to guess that maybe there is a syntax in one of the lines
preceding this one. Could you share the entire DATABASE session of
your settings file?
FYI, I have written a more up to date procedure for running Django on
Dreamhost - built on the great posts by Jeff Croft and others.
http://da
I agree with Aaron. I upgraded 5 apps from v1.0.4 to 1.3 earlier this
year, and it was pretty easy after reviewing the release notes.
Moving to class based views (to replace generic views) was not
required for 1.3, but I had fun and learned quite a bit.
On Jan 28, 7:35 pm, Aaron Cannon
wrote:
>
Hello,
We are searching for a django developer for full time job, he/she must be
very capable and ready to take over a full time job. Must have strong
django experience, postgres, django-gis, html, css, jquery.
Please contact me back as soon as possible to discuss details,
regards,
--
You rece
I cannot get the admin CSS to load.
The dev docs shows that:
"ADMIN_MEDIA_PREFIX
Deprecated in Django 1.4: This setting has been obsoleted by the
django.contrib.staticfiles app integration"
Checking another project I had which I generated with "startproject"
on 1.4a1 I found that its CSS works an
27 matches
Mail list logo