Monday, October 31, 2011

Re: I can't activate the admin site

hmm,

I suspect that the part of the error message you posted *may* not be completely clear on where the indentation problem is actually occurring. Anyways, if you want to be sure then I would try using Django 1.3 since it's thoroughly tested.

Im' still half asleep so I could be overlooking something but that'd be probably the first place to try :) There's no guarantees they don't have any bugs in the latest trunk.

On Oct 30, 2011, at 9:42 PM, Juan Kepler wrote:

> I've done what the "Writing your first Django app, part 1" said. It
> works.
>
> But in the part 2:
> *I add "django.contrib.admin" to my INSTALLED_APPS setting.
> *I run python manage.py syncdb.
> And I have this error:
> "File "...Python26\lib\site-packages\django\contrib\admin\sites.py",
> line 250
> return self.get_urls(), self.app_name, self.name
> IndentationError: unexpected indent"
>
> I have the latest version of Django installed, and I'm using PyCharm
> as IDE
>
> What can I do?
> Thanks!
>
> --
> 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+unsubscribe@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
>

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

Re: I can't activate the admin site

On Mon, 2011-10-31 at 05:25 +0200, Nick Apostolakis wrote:
> Since it complains about
>
> IndentationError: unexpected indent"
>
>
> I would guess that you have typed an extra space or tab somewhere,
> that
> ruins the identation.
> Since you use an IDE it should be easy to find it.

but the indentation error seems to be in the django source code?
Normally one does not fiddle with that.
--
regards
Kenneth Gonsalves

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

Re: django ajax select



On Mon, Oct 31, 2011 at 10:07 AM, pradnya <mhatre.pradnya@gmail.com> wrote:
  i m using ajax select plugin in my project which i got from
https://github.com/crucialfelix/django-ajax-selects .
now i want to know how can i use it in django admin's tabular inline ?

What you want to do in admin? 

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

Django tutorial hasn't received an update for 1.3

I keep checking the tutorial page for version 1.3 hoping to see some
new content related to the class-based views or at least some of the
promised future tutorials. The tutorial still has the function-based
views, and no new updates since I first went through it on the 1.2
release.

I know the function views work in 1.3, but shouldn't the tutorial be
using the latest features included in 1.3 so that new users coming to
Django begin learning the newest features, such as class-based views.

I'm still a dinosaur and using Django 1.2 and haven't yet dived into
class-based views, and when I do, I would love a great tutorial on how
to proceed. I plan on learning Django 1.3's newest features very soon
to keep myself up to speed and see if my current apps are fully
compatible.

Are there any updates on when we will see the following new tutorial
sections:
- Advanced form processing
- Using the RSS framework
- Using the cache framework
- Using the comments framework
- Advanced admin features: Permissions
- Advanced admin features: Custom JavaScript

I figured out most of this on my own, as they are pretty
straightforward, still haven't dived into custom javascript in the
admin yet.

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

Sunday, October 30, 2011

Re: variables in a dict in a template

On Sun, 2011-10-30 at 12:00 -0400, Kurtis Mullins wrote:
> One way to go about it is to create multiple, nested objects. For
> example:
>
> Score - Rounds ---- Holes
>
> Then in your template, you'd do something along the lines of:
>
> {% for round in game.rounds %} {% for hole in round.holes %}
> {{ hole.score }} {% endfor %} {% endfor%}
>
>
> Hopefully that helps a little :)

that was my original structure - but there was too much code required,
and after several years of using it, I still found difficulty in
understanding and upgrading it. The present structure is simple and
flexible - the only downside is that I have write some extra html.
Anyway it is just one template and I suppose I have to live with it.
--
regards
Kenneth Gonsalves

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

django ajax select

Hi,
i m using ajax select plugin in my project which i got from
https://github.com/crucialfelix/django-ajax-selects .
now i want to know how can i use it in django admin's tabular inline ?

Thanks
Pradnya

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

Re: I can't activate the admin site

On 31/10/2011 03:42 πμ, Juan Kepler wrote:
> I've done what the "Writing your first Django app, part 1" said. It
> works.
>
> But in the part 2:
> *I add "django.contrib.admin" to my INSTALLED_APPS setting.
> *I run python manage.py syncdb.
> And I have this error:
> "File "...Python26\lib\site-packages\django\contrib\admin\sites.py",
> line 250
> return self.get_urls(), self.app_name, self.name
> IndentationError: unexpected indent"
>
> I have the latest version of Django installed, and I'm using PyCharm
> as IDE
>
> What can I do?
> Thanks!
>
>
Since it complains about

IndentationError: unexpected indent"


I would guess that you have typed an extra space or tab somewhere, that
ruins the identation.
Since you use an IDE it should be easy to find it.

--
--------------------------------------------------------------
Nick Apostolakis
e-mail: nickapos@oncrete.gr
Web Site: http://nick.oncrete.gr
--------------------------------------------------------------


--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.