Re: Newbie question regarding uninstalling Django system-wide.

2016-07-12 Thread Mike Dewhirst
On 13/07/2016 1:55 AM, Leo wrote: I am learning how to use Django. With my first attempt I did not use a virtual environment instead installed Django system-wide. Now I have learned to utilize virtual environments. Can you help me learn how to uninstall the system-wide Django instance? Also, I ca

Re: How can I change the TabularInline "title" on Django Admin?

2016-07-12 Thread Lachlan Musicman
There's a ticket for this in the tracker iirc, but I can't find it now. I think the reason is because that's the name of the DB field - it's not localizable (in so much as we don't localize db field names). I *think* that was the reason. -- The most dangerous phrase in the language is, "We've

Re: static files suspicious operation, os error, and list of paths

2016-07-12 Thread Malik Rumi
Michal, > , it looks like somewhere, you're calling ``os.path.join(a, b)``, where the second argument starts with a slash I've tried it both ways. The way I got findstatic to work was by taking off the leading slash, but so far I haven't figured out how to make that work so that the files are cal

Re: How can I change the TabularInline "title" on Django Admin?

2016-07-12 Thread Fellipe Henrique
On Tue, Jul 12, 2016 at 1:52 PM, Ramiro Morales wrote: > Where the 'Conjunto de dados' seen in the screenshot title comes from? Is > the code you posted actually in sync with it? Sorry about that, I take the screenshot before change these text to "DataSet"... [image: Inline image 1] My proble

Re: How can I change the TabularInline "title" on Django Admin?

2016-07-12 Thread Ramiro Morales
On Tue, Jul 12, 2016 at 1:44 PM, Fellipe Henrique wrote: > > On Tue, Jul 12, 2016 at 1:34 PM, Ramiro Morales wrote: > >> Can you post a simplified excerpt of the relevant (fields, Meta options, >> __*__ methods) models, admin app ModelAdmin's and *Inline's involved which >> result in the layout

Re: How can I change the TabularInline "title" on Django Admin?

2016-07-12 Thread Fellipe Henrique
On Tue, Jul 12, 2016 at 1:34 PM, Ramiro Morales wrote: > Can you post a simplified excerpt of the relevant (fields, Meta options, > __*__ methods) models, admin app ModelAdmin's and *Inline's involved which > result in the layout depicted in the screenshot you posted? > Sure, here is: class Dat

Re: How can I change the TabularInline "title" on Django Admin?

2016-07-12 Thread Ramiro Morales
On Tue, Jul 12, 2016 at 12:54 PM, Fellipe Henrique wrote: > > On Thu, Jul 7, 2016 at 5:24 PM, Michal Petrucha < > michal.petru...@konk.org> wrote: > >> In that case, the “DATASET” would be the verbose_name of that field, >> and “Dataset_users object” is the string representation of the >> ori

Newbie question regarding uninstalling Django system-wide.

2016-07-12 Thread Leo
I am learning how to use Django. With my first attempt I did not use a virtual environment instead installed Django system-wide. Now I have learned to utilize virtual environments. Can you help me learn how to uninstall the system-wide Django instance? Also, I can't recall if I used pip or ap

Re: How can I change the TabularInline "title" on Django Admin?

2016-07-12 Thread Fellipe Henrique
On Thu, Jul 7, 2016 at 5:24 PM, Michal Petrucha < michal.petru...@konk.org> wrote: > In that case, the “DATASET” would be the verbose_name of that field, > and “Dataset_users object” is the string representation of the > original original object that the row corresponds to. > Unfortunately no

Re: django_bootstrap_calendar and admin backend

2016-07-12 Thread Cronos Cto
Ok so I was able to fix one of my problems, consisted in framework not recognizing the database, had to delete it and migrate everything again. Right now I can add events in my backend, but when I check my website the day where I have set the event lights up, but does not show title, hour or a

Re: django_bootstrap_calendar and admin backend

2016-07-12 Thread Cronos Cto
Ok so I was able to fix one of my problems, consisted in framework not recognizing the database, had to delete it and migrate everything again. Right now I can add events in my backend, but when I check my website the day where I have set the event lights up, but does not show title, hour or a

Re: Create navbar dropdown menu list with url tags

2016-07-12 Thread Prog Nauts
ok clear Il giorno mercoledì 6 luglio 2016 16:27:41 UTC+2, pythonc...@gmail.com ha scritto: > > Hi, > I have a model and whould like to create a dropdown menu from the fields > generated. > Unfortunately no dropdown list is showed: > > {% for airline in alirlines %} > >

json null value in a PostgreSQL jsonb column

2016-07-12 Thread barthelemy
I believe I found a limitation in the Django jsonb support, but I'm really not sure how the framework could fix it beside adding a limitation section in the documentation. Basically, it is possible to fetch models with json 'null' values but it is not possible to save them back (Django converts

Re: How do I fetch table values in pdf using django?

2016-07-12 Thread Derek
Here's a good tutorial: https://assist-software.net/blog/how-create-pdf-files-python-django-application-using-reportlab On Tuesday, 12 July 2016 13:29:00 UTC+2, Aslam Sha wrote: > > > How do I fetch table values in pdf using django? > > ** I AM USING REPORTLAB FOR PDP* > -- You received this m

Re: Url problem

2016-07-12 Thread James Schneider
On Jul 12, 2016 4:27 AM, "VilleP" wrote: > > Hi guys! > > I've got a little problem with my url "generating". Everytime I try to run my testserver and move through pages, that I've linked there it goes like this: > > http://testserver.local/home #(this is totally fine) > (click on another page) >

Django Custom Models

2016-07-12 Thread AT
Being new to Django I wonder if someone could point me in the right direction and I apologise in advance if this is an obvious question. I have a model with a field that sets an expiry date. In my ListView I have the following: queryset = Article.objects.filter(expiry_date__gt=datetime.now()).o

How do I fetch table values in pdf using django?

2016-07-12 Thread Aslam Sha
How do I fetch table values in pdf using django? ** I AM USING REPORTLAB FOR PDP* -- 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...@goog

running django 1.9 problem

2016-07-12 Thread Nicolas Favede
hi i am a bit used to python i have a mac coming with 2.7.6 version and install 3.4 that i can use if i call i installed with difficulties django 1.9 it came there /Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4 don't ask me why now i cannot import or work with PLEASE SOME HELP TH

Url problem

2016-07-12 Thread VilleP
Hi guys! I've got a little problem with my url "generating". Everytime I try to run my testserver and move through pages, that I've linked there it goes like this: http://testserver.local/home #(this is totally fine) (click on another page) http://testserver.local/home/page1 (click on another p

Annotate on related field

2016-07-12 Thread Ramashish Baranwal
Hi, I have the following model definitions: class Tag(models.Model): name = models.CharField(max_length=16) class Blog(models.Model): name = models.CharField(max_length=16) tags = models.ManyToManyField(Tag, blank=True) I want to select blogs with more than one tags. Here is what

Custom Models

2016-07-12 Thread anthonytu56
I am relatively new to Django and am hoping somebody can help me. I apologise in advance if this is a very simple question. I have a model that has an expiry date. In my view I have the following: queryset = Post.objects.filter(expiry_date__gt=datetime.now()).order_by('expiry_date') This works

install of django 1.9

2016-07-12 Thread Nicolas Favede
hi everybody i install with difficulties butdjango 1.9 on my imac i am used to python run on 2.7.6 coming with terminal but i also installed 3,4 version that i call and use when i want django came there library/frameworks/python frameworks/version3.4/lib/python3.4/django don't ask me wh

Re: static files suspicious operation, os error, and list of paths

2016-07-12 Thread Michal Petrucha
On Tue, Jul 12, 2016 at 12:40:11AM -0700, Malik Rumi wrote: > UPDATE: > > I got it back to where runserver comes up and I get no errors, but the > staticfiles are still not being served. > > > The paths are in the right *format* to satisfy the STATICFILES_DIR in > SETTINGS, and so that they c

Re: static files suspicious operation, os error, and list of paths

2016-07-12 Thread Malik Rumi
UPDATE: I got it back to where runserver comes up and I get no errors, but the staticfiles are still not being served. The paths are in the right *format* to satisfy the STATICFILES_DIR in SETTINGS, and so that they can be *found*, according to debug toolbar, and they *pass* the checks in ru