Re: nginx configuration to cache all endpoints but one

2016-09-25 Thread gg4u
Hi Hashmi, thank you for your suggestion. I tried to set proxy_pass for the location I don't want to cache, but I don't see caching working properly on my browser. Could you give a look? I will attach a mockup of settings,may you want to comment or edit it there so that is more readable to me

ForeignKey filters are not working

2016-09-25 Thread Shazia Nusrat
Hi, Can someone please help me with the question in link. I've been trying to get it done from hours now please assist to get my processed orders displayed on dashboard. Regards, Shazia -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubs

Can someone help me to fix ForeignKey related filter issues

2016-09-25 Thread Shazia Nusrat
Hi, Following is the link and kindly assist as I've been trying to do this for hours now. http://stackoverflow.com/questions/39685833/django-filter-with-foreignkey-not-working?noredirect=1#comment66671635_39685833 Regards, Shazia -- You received this message because you are subscribed to the G

Re: nginx configuration to cache all endpoints but one

2016-09-25 Thread M Hashmi
Send me settings of /etc/nginx/nginx.conf and then /etc/sites-available/app. The format of the file is not opening up on my system as I am on windows right now. Also if you have some logs that would be great. Regards, M (call me M) On Sun, Sep 25, 2016 at 3:50 AM, gg4u wrote: > Hi Hashmi, > > t

Django migrate generates SQLite3 file filled with junk

2016-09-25 Thread kbman99
Just getting started with django and having an issue with the migrate.py script. It generates a db.SQLite3 file which is filled with a lot of garbage characters. It's in UTF-8 encoding, but looks like this. I've deleted the file and redo

Re: Django migrate generates SQLite3 file filled with junk

2016-09-25 Thread Gergely Polonkai
That file is an SQLite database, which is a binary format. It should look like this. I know it is confusing, because of that bunch of SMS statements, but it's OK that way. If you want to interact with it, use the sqlite3 command, or an SQLite GUI. On Sun, Sep 25, 2016, 14:17 kbman99 wrote: > Ju

Re: Django migrate generates SQLite3 file filled with junk

2016-09-25 Thread Lekan Wahab
On 25 Sep 2016 1:17 PM, "kbman99" wrote: > > Just getting started with django and having an issue with the migrate.py script. It generates a db.SQLite3 file which is filled with a lot of garbage characters. It's in UTF-8 encoding, but looks like this. > > I've deleted the file and redone the mig

Re: nginx configuration to cache all endpoints but one

2016-09-25 Thread gg4u
Hi M :) thank you for helping out! Here a .txt version of settings. For logs, I will send it in PVT! thank you. Il giorno domenica 25 settembre 2016 13:40:13 UTC+2, M Hashmi ha scritto: > > Send me settings of /etc/nginx/nginx.conf and then > /etc/sites-available/app. > The format of the file

HTML Flexbox CSS

2016-09-25 Thread Ed09
Trying to implement: http://www.w3schools.com/css/tryit.asp?filename=trycss3_flexbox_website within Django. Works fine when all of the Flexbox section is within the template but if I move this style section to a css the following @media sections stop working but the rest continues to work.

Re: HTML Flexbox CSS

2016-09-25 Thread ludovic coues
Look like your css isn't loaded. Static file might be tricky to get right the first time 2016-09-25 15:09 GMT+02:00 Ed09 : > Trying to implement: > http://www.w3schools.com/css/tryit.asp?filename=trycss3_flexbox_website > within Django. > Works fine when all of the Flexbox section is within t

Re: HTML Flexbox CSS

2016-09-25 Thread Lekan Wahab
Hi, In order to ease the work of making your changing your static files to the right URL format in Django, a friend of mine came up with a library called *Staticfy* for it. You can check it out on : https://github.com/danidee10/Staticfy It will really ease your work. On 25 Sep 2016 2:55 PM, "Ed

How can I send a password recovery e-mail to a Customer/User in Django?

2016-09-25 Thread João Rodrigues
I am working on a small online shop with Django 1.9 and I have a Customers page. Note: This is the back-end site. Only for me...

How to populate a JqGrid in Django with data obtained from a query (queryset)

2016-09-25 Thread João Rodrigues
I am working on a small online shop with Django 1.9 and JqGrid Here is a simplification of my models: class Addresses(models.Model): address = models.TextField(db_column='ADDRESS', max_length=2000) city = models.CharField(db_column='CITY', max_length=400, blank=True, null=Tru

Re: HTML Flexbox CSS

2016-09-25 Thread Mike Dewhirst
Completely off-topic but I have found the CSS documentation and advice on https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ to be more effective and up-to-date than found on w3schools. w3schools always sorts to the top of the google page but you will see the developer.mozilla item th

email console backend is silent

2016-09-25 Thread Mike Dewhirst
Some little time ago my admin site stopped sending password reset emails. After checking all the credentials, ports, server names, etc it is still silent. So in the dev-server I set EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' and proceeded to request a password reset. Not

Re: How can I send a password recovery e-mail to a Customer/User in Django?

2016-09-25 Thread Gergely Polonkai
Hello, the trick is not in the email sending, but in resetting the password. Assuming you don't use any user managing apps (as you didn't state it), you will have to implement some parts, but the built-in auth module[1] already covers a lot of this. Best, Gergely [1] https://docs.djangoproject.

Re: How to populate a JqGrid in Django with data obtained from a query (queryset)

2016-09-25 Thread Gergely Polonkai
Hello, do you already know how to do it without Django, e.g with a static dataset? Because, from the HTML page's view, you will exactly do that. I don't know JqGrid, but I assume it needs an array of objects, like gridData = [ { firstColumn: 1, secondColumn: "data" },