Re: No styling in Chapter 6 in djangobook

2013-05-20 Thread Mike Dewhirst
On 21/05/2013 11:07am, djingo django wrote: I'm starting to learn Django and have been reading through the djangobook.com. I am able to get the code running when I come to Chapter 6: The Django Admin Site, but it looks nothing like the well-formed and well-styled screenshots in the documentatio

Re: [Bulk] Re: Template Inheritance doubt

2013-05-20 Thread Sam Solomon
If you are mainly using this for splitting stuff into multiple files, here is what we do to accomplish the same thing but keep it so that templates always inherit base.html instead of sidebar.html: base.html: {% extends 'header.html' %} {% block main %} {% endblock main %} header.html: {%

Re: Variables inside the static tag

2013-05-20 Thread Oscar Carballal
Both solutions worked, thanks! :D 2013/5/20 Per-Olof Åstrand > You may also look at the get_static_prefix tag, which should also do the > job for you. > > Per-Olof > > > > On Monday, May 20, 2013 9:43:58 PM UTC+2, Nikolas Stevenson-Molnar wrote: > >> How about getting the path to the flags, the

Re: Variables inside the static tag

2013-05-20 Thread Per-Olof Åstrand
You may also look at the get_static_prefix tag, which should also do the job for you. Per-Olof On Monday, May 20, 2013 9:43:58 PM UTC+2, Nikolas Stevenson-Molnar wrote: > > How about getting the path to the flags, then tacking on the filename > outside the tag... > > {% static "assets/flags/"

Re: postgresql

2013-05-20 Thread Anurag Chourasia
Read this for a starter http://www.postgresql.org/docs/9.2/interactive/index.html Regards, Guddu On Mon, May 20, 2013 at 3:35 PM, Kakar Arunachal Service < kakararunachalserv...@gmail.com> wrote: > hi guyz! > I'm new to django and python, and very new to postgresql. Can u suggest > any books or

Re: Variables inside the static tag

2013-05-20 Thread Nikolas Stevenson-Molnar
How about getting the path to the flags, then tacking on the filename outside the tag... {% static "assets/flags/" %}{{ request.LANGUAGE_CODE }}.gif _Nik On 5/20/2013 12:13 PM, Oscar Carballal wrote: > Hi, > > I'm migrating to the new static tag in my project, and I ran into a > problem, in some

Re: postgresql

2013-05-20 Thread Charly Román
You don't need a tutorial for Postgresql, django ORM make all the work. BTW, if you need a tutorial you muts ask in a postgresql group. 2013/5/20 Kakar Arunachal Service : > hi guyz! > I'm new to django and python, and very new to postgresql. Can u suggest any > books or tutorial for postgresql?

Re: postgresql

2013-05-20 Thread Itamar Reis Peixoto
On Mon, May 20, 2013 at 4:35 PM, Kakar Arunachal Service wrote: > hi guyz! > I'm new to django and python, and very new to postgresql. Can u suggest any > books or tutorial for postgresql??? try googling for python psycopg -- Itamar Reis Peixoto -- You received this message beca

postgresql

2013-05-20 Thread Kakar Arunachal Service
hi guyz! I'm new to django and python, and very new to postgresql. Can u suggest any books or tutorial for postgresql??? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an em

Variables inside the static tag

2013-05-20 Thread Oscar Carballal
Hi, I'm migrating to the new static tag in my project, and I ran into a problem, in some places I use variables to get the content, but that doesn't work anymore in django 1.5, is there any way to solve this? Current code: What it should be (doesn't work): I've also asked in StackOverflow (ht

Foreign keys to generated through models

2013-05-20 Thread Adrián López Calvo
Hello, Is this possible? It would be perfect for my implementation. I would need something alone the lines of this: class Membership(models.Model): membership = models.OneToOneField(User.groups.through) date_added = models.DateField(_('date added'), auto_now_add=True) made_member

Inserting a search field into a tabularline inline

2013-05-20 Thread Victor
As a newby I started an app that works quite fine. Here are the models (Forgive some 'slip of the tongue' but I had to translate my *.py's into English and simplify them): In models.py . . class Item(models.Model): id = models.AutoField(primary

Inserting a search field into tabularline

2013-05-20 Thread Victor
As a newby I started an app that works quite fine. Here are the models (Forgive some 'slip of the tongue' but I had to translate my *.py's into English and simplify them): In models.py . . class Item(models.Model): id = models.AutoField(primar

Django Form Widget for JSON

2013-05-20 Thread Александр Аббасов
Good day for all, I want to share with community a solution that I hadn't few days ago. My task have been to split a JSON data by a fileds of a form, edit data at the fields and save to the JSON. I could apply a few solutions but they are don't work with nested the JSON data. Finally, I decided

Python/Django DevOps community and resources

2013-05-20 Thread Daniele Procida
Hi folks. I've just got back from the most astounding DjangoCon Europe in Warsaw, where several of decided that the DevOps in the community needed more mutual support. So, we've set up #django-devops on irc.freenode.net, and for an email list. Do

Re: How do I seo in my website?

2013-05-20 Thread frocco
Thank you On Monday, May 20, 2013 10:35:06 AM UTC-4, frocco wrote: > > Hello, > > I notice that my site does not come up when searching in google. > What do I need to do in django to resolve this? > > Thanks > -- You received this message because you are subscribed to the Google Groups "Django

Re: Get url parameters

2013-05-20 Thread Hélio Miranda
Hi I need to get a parameter from the url which is the id and do not know how. When my url is like this: * http://localhost:8080/test/view/20519364e38774a71190edb28c* I do: *url(r'^view/(?P\w+)', 'rest.views.view'),* And everything ok. Now I have a url like this: * http://localhost:8080/test/view

Re: How do I seo in my website?

2013-05-20 Thread Rafael E. Ferrero
https://django-seo.readthedocs.org/en/latest/introduction/tutorial.html 2013/5/20 frocco > Hello, > > I notice that my site does not come up when searching in google. > What do I need to do in django to resolve this? > > Thanks > > -- > You received this message because you are subscribed to th

How do I seo in my website?

2013-05-20 Thread frocco
Hello, I notice that my site does not come up when searching in google. What do I need to do in django to resolve this? Thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, se

djnago xml model specification?

2013-05-20 Thread Michał Nowotka
I'm using django with many related projects. All those projects are using their own models. But unfortunately this is not DRY, because each model differ from each other very slightly, for example some columns or tables from one model are missing in other, or some model defines custom save metho

Re: Raise field error in models clean method

2013-05-20 Thread Jani Tiainen
On Sun, 19 May 2013 06:38:50 -0700 (PDT) Kai Schlamp wrote: > Hello. > > How to raise a `ValidationException` in the models `clean` method? > > def clean(self): > from django.core.exceptions import ValidationError > raise ValidationError({'title': 'not ok'}) > > The above d

Re: [Bulk] Re: Template Inheritance doubt

2013-05-20 Thread Parin Porecha
Dow, I am using the chained approach which you suggested ( base -> topbar -> sidebar -> view1 ). It works perfectly as i wanted :) Thanks! On Sun, May 19, 2013 at 10:50 PM, Dow Street wrote: > Hi. I'm not sure, but we may be using the terms 'parent' and 'child' > differently (i.e. what you're

Re: [Bulk] Re: Template Inheritance doubt

2013-05-20 Thread Dow Street
Hi. I'm not sure, but we may be using the terms 'parent' and 'child' differently (i.e. what you're calling a child I'm calling a parent?). I have only used django template inheritance where a given template file has at most one {% extends %} tag in it - that is what I am referring to when I sa

Re: Django setting.py issue

2013-05-20 Thread husw
DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'. 'NAME': 'data.db', # Or path to database file if using sqlite3. 'USER': '', # Not used with sqlite3

Re: Trailing zeros in DecimalField

2013-05-20 Thread Derek
Possibly related to localisation. See: https://groups.google.com/forum/?fromgroups#!topic/django-users/evJ7jg-YhdM https://docs.djangoproject.com/en/dev/topics/i18n/formatting/ On Sunday, 19 May 2013 01:37:22 UTC+2, Pedro J. Aramburu wrote: > > I've been reviewing the code of *models.DecimalFiel