Re: Customize the admin look and feel

2013-06-27 Thread krazyXplorer
Hey Thanks Tomas Ehrlich and Jygga fey it worked !! At first it didn't worked I was referring to lots of suggestions and then made a mistake of adding * admin:* in the base_site.html so got this error TemplateDoesNotExist at /admin/ admin:admin/base.html Request Method: GET Request URL: http:

Re: Add dynamically form to Formset

2013-06-27 Thread yeswanth nadella
Can you explain a little more? On Thursday, June 27, 2013 11:22:14 AM UTC-5, Mário Idival wrote: > > Hello, > How you do for add more formset in form with Django 1.5? > > -- > Mário Idival > > *Twitter *: *@marioigd* > *Facebook*: *mario.idival* > *User Linux : **#554446* > Skype*: marioidival* >

Re: A PHP framework with some Django features?

2013-06-27 Thread yeswanth nadella
Even cake php framework does create db tables from models. The only thing is that you need to install a third party application. On Thursday, June 27, 2013 4:13:38 PM UTC-5, thoms wrote: > > Hello, > > I have a PHP background, and I'm learning Django. > Long story short: I love Django, but s

Re: A PHP framework with some Django features?

2013-06-27 Thread Rene Vallecillo
I guess you could try http://symfony.com/ On Thu, Jun 27, 2013 at 3:13 PM, thoms wrote: > Hello, > > I have a PHP background, and I'm learning Django. > Long story short: I love Django, but some things are really painful to do > (configuration, media/static content, etc.). > > That's why I

Re: Static files not served

2013-06-27 Thread Sithembewena Lloyd Dube
Hi @der_fenix, My STATIC_URL setting is as follows: STATIC_URL = '/static/' I suspect that Django's development server's static serving does not like noscript tags? I have no idea. I might poke around later ... starting from Django's 'django.contrib.staticfiles.views.serve()' call. On Thu, Jun

Re: Django automatically formatting ints with commas, bug?

2013-06-27 Thread carlos
try this https://docs.djangoproject.com/en/dev/ref/settings/#decimal-separator Cheers On Thu, Jun 27, 2013 at 7:32 PM, Stryder Crown wrote: > Any body know why django would format an integer as a comma seperated > value? i.e. 1578 becomes 1,578? > No, I'm not using humanize and only loading i

Django automatically formatting ints with commas, bug?

2013-06-27 Thread Stryder Crown
Any body know why django would format an integer as a comma seperated value? i.e. 1578 becomes 1,578? No, I'm not using humanize and only loading il8n and sekizai tags...The only way I've found to force it to render correctly is to use '|stringformat:"s"'. Usage: {% load i18n sekizaitags %} El

Re: Django-admin-tools unicode problem

2013-06-27 Thread Jaimerson Leandro Amaro de Araújo
Cara, o problema é que a exceção tá sendo no template do aplicativo, que lê as informações do banco de dados. Alterar os arquivos do admin-tools é inviável em termos de portabilidade na hora do deploy. O que eu quero saber é se é possível mudar o encoding padrão desse app. Em quarta-feira, 26 d

I am having trouble using ajax with model form set.

2013-06-27 Thread yeswanth nadella
EventsFormSet = modelformset_factory(Events, extra=0) if request.method == 'POST': formset = EventsFormSet(request.POST) if formset.is_valid(): formset.save(); return HttpResponseRedirect('/sucess/') else: formset = EventsFormSet(queryset=E

A PHP framework with some Django features?

2013-06-27 Thread thomaaaas
Hello, I have a PHP background, and I'm learning Django. Long story short: I love Django, but some things are really painful to do (configuration, media/static content, etc.). That's why I want to know if there is a PHP framework that has some of Django's really cool features: - Automatically c

Re: Static files not served

2013-06-27 Thread der_fenix
Is there you main static dir in STATIC_URL in settings.py? > Update: removing the noscript tags around the css tags in the template > solves the issue. I am no clientside scripting expert, but it is my > understanding that noscript tags accommodate browsers with scripting turned > off, or legacy b

Re: Static files not served

2013-06-27 Thread Sithembewena Lloyd Dube
Update: removing the noscript tags around the css tags in the template solves the issue. I am no clientside scripting expert, but it is my understanding that noscript tags accommodate browsers with scripting turned off, or legacy browsers? Surely the css should work by default? I know this is not

Static files not served

2013-06-27 Thread Sithembewena Lloyd Dube
Hi all, I have a local development project where I put all static media in a 'static' subdirectory of my app (/project/app/static/). I then created a 'static' directory in the root folder of my project (/project/static/) and specified that as my STATIC_ROOT in settings.py. When I run the './manag

Re: How to store site-wide application settings

2013-06-27 Thread der_fenix
Quick way is create one model with fields, that equals all params. I.e. for your example - field with welcome text, two fields with banners and 3 fields for links. So you'll have one record in table with all needed parametrs. Of course this way isn't acceptable if you'll have over hundred params

Re: How to store site-wide application settings

2013-06-27 Thread Felipe Coelho
2013/6/27 rush > Hi, > > Could please somebody advice how to store application settings and allow > to edit them via admin panel? > Settings are used site-wide, not on per user basis. > > This settings have different types ( text, ineteger, images aka banners ) > therefore it looks impossible to

Re: Customize the admin look and feel

2013-06-27 Thread Tomas Ehrlich
Hi there, please try: TEMPLATE_DIRS = ( "C:/xampp/htdocs/mytemplates/" ) After all, it's TEMPLATE_DIRS not TEMPLATE_FILES. It should contain directories with templates. Cheers, Tom Dne Thu, 27 Jun 2013 09:46:40 -0700 (PDT) krazyXplorer <1.kc.d...@gmail.com> napsal(a): > I am new to Djan

Re: Customize the admin look and feel

2013-06-27 Thread Jygga fey
Try it like this: TEMPLATE_DIRS = ( "C:/xampp/htdocs/mytemplates/" # Always use forward slashes, even on Windows. # Don't forget to use absolute paths, not relative paths. ) You are expected to list locations (in other words: directories, hence the DIRS part) of where the loader will

Setting up django with mongoengine on windows7

2013-06-27 Thread Dave Francois
So I am trying to set mongo-engine as django's back-end and am having no luck :/ so if someone can point me in the direction of a really good guide to follow or can walk through setup with me that would be greatly appreciated -- You received this message because you are subscribed to the Goog

New user: example database tables not found

2013-06-27 Thread rshepard
I'm working my way through the django-1.5.1 manual. Following instructions to create the polls sample site I see on page 29 to run 'python manage.py syncdb' to create the model tables in the postgres database. However, when I run 'psql -l' I do not see the sample database. What might I have done

Customize the admin look and feel

2013-06-27 Thread krazyXplorer
I am new to Django and got stuck at Tutorial 2 - Customize the admin look and feel When I directly went into * C:\Python27\Lib\site-packages\django\contrib\admin\templates\admin\base_site.html * and made changes in *base_site.html* there was no problem and I didn't even had to edit the *TEMPLAT

Add dynamically form to Formset

2013-06-27 Thread Mário Idival
Hello, How you do for add more formset in form with Django 1.5? -- Mário Idival *Twitter *: *@marioigd* *Facebook*: *mario.idival* *User Linux : **#554446* Skype*: marioidival* -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe fr

Error Using ModelForm Wizard For Editing in Django

2013-06-27 Thread coded kid
You can check the code properly here: http://pastebin.com/1Ygq9RZs 1. I have two seperate forms and I used Django ModelForm wizard to create the form. I can create and save the form.Also I created a seperate view for editing of the form, but When I wanted to edit the same form, a

Re: Dynamic constructions of URLs in Django

2013-06-27 Thread Bill Freeman
I suspect that this just means that you can add or not add url patterns, and adjust the contents of the regular expression or other members of the url pattern object, based upon information AVAILABLE AT IMPORT TIME, such as settings.DEBUG, settings.INSTALLED_APPS, socket.gethostname(), etc. On Th

Re: configure apache for shared hosting using fcgi

2013-06-27 Thread Bill Freeman
While I don't know the details, I do know that use of .htaccess files (and I'm pretty sure there are two "c"s, as I have it, but at lest in your email, you have one) must be explicitly enabled in apache's configuration. That's because checking for .htaccess files in every directory slows apache dow

DateTimeField returns an hour

2013-06-27 Thread Hélio Miranda
Hi! I have a problem and do not know what's wrong. I have a field defined with time DateTimeField ... When I insert eg 20:30 19:30 he returns, returns with an hour ... Someone can explain me why? thank you -- You received this message because you are subscribed to the Google Groups "Django use

Re: View pictures from the template via models.FilePathField

2013-06-27 Thread Federico Erbea
but ImageField, you should not use to save the imported files by users? -- 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 email to django-users+unsubscr...@googlegroups.com

Re: Save String /Value to Table Entry

2013-06-27 Thread Bill Freeman
There are several approaches: 1. Your code that currently reads the string could connect to the Django site via HTTP, log in as a user to which you have given suitable permissions, and know enough about how to talk to the admin interface to create and populate instances of the model that you have

Dynamic constructions of URLs in Django

2013-06-27 Thread Nafiul Islam
Hi, I was reading the docs here : https://docs.djangoproject.com/en/dev/topics/http/urls In overview, it says that you because the URLConf is written in Python it can be dynamically constructed. What does that mean, and what does it imply for a developer like myself? -- You received this mess

Re: Multiple TaggableManager() on model [django-taggit]

2013-06-27 Thread Thierry Ballzac
This solution did the business for me nicely! https://neutron-drive.appspot.com/blog/multiple-tags On Tuesday, July 17, 2012 12:52:55 PM UTC+1, Alir3z4 wrote: > > Hi > This question is about having more than one > taggit > .managers

configure apache for shared hosting using fcgi

2013-06-27 Thread Sheila
Following the django book https://docs.djangoproject.com/en/dev/howto/deployment/fastcgi/#running-django-on-a-shared-hosting-provider-with-apache I am trying to deploy my project on shared host. To try it first I am using a virtual Ubuntu 10.04 server. In my server user can access http://local

Re: Advanced Search in django

2013-06-27 Thread Peith Vergil
What I would probably do in that situation is setup Whoosh and django-haystack. Then use Haystack's EdgeNgramField on your user model's firstname and lastname. On Thu, Jun 27, 2013 at 4:33 PM, Harjot Mann wrote: > On Thu, Jun 27, 2013 at 1:16 PM, Peith Vergil > wrote: > > Try using django-hayst

Re: Advanced Search in django

2013-06-27 Thread Harjot Mann
On Thu, Jun 27, 2013 at 1:16 PM, Peith Vergil wrote: > Try using django-haystack. It's a nice Django app, very easy to use, and > with good documentation: http://django-haystack.readthedocs.org/en/latest/. > It provides a QuerySet like API for several search engine backends. It works > with Solr,

Re: forloop breaking

2013-06-27 Thread abhijeet shete
Hi, You can achieve this by using javascript or jquery. Just check this example : http://jsfiddle.net/pxbW9/ I want to remove the static heading of a table in django templates in > which the data is coming form database which is dynamic so I want if > there is no entry in that column it shou

Re: django deploy structure

2013-06-27 Thread mulianto
Hi, If cannot use git, for copy the source you can use rsync or use fabric to selective upload the file and reload the app. But easier using GIT Sent from my iPhone On 27 Jun 2013, at 08:15, Nick Apostolakis wrote: > You could use a code versioning system like git or bazaar.when you want to

Re: Advanced Search in django

2013-06-27 Thread Peith Vergil
Try using django-haystack. It's a nice Django app, very easy to use, and with good documentation: http://django-haystack.readthedocs.org/en/latest/. It provides a QuerySet like API for several search engine backends. It works with Solr, ElasticSearch, Whoosh, Xapian, etc. -- You received this me

Re: forloop breaking

2013-06-27 Thread Harjot Mann
On Thu, Jun 27, 2013 at 11:40 AM, yati sagade wrote: > I doubt she has a problem with the Python for-loop. She is trying to achieve > similar control flow in the Django templating language's for loop. I want to remove the static heading of a table in django templates in which the data is coming

Advanced Search in django

2013-06-27 Thread Harjot Mann
How can we add advance search in django like google's advance search?? -- 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 email to django-users+unsubscr...@googlegroups.com.