Re: SingleObjectMixin docs Typo?

2017-06-06 Thread guettli
Hi Tim, I am curious. Is this your leisure or your job? Nevertheless: Thank you very much for this fix and endless other fixes. Am Dienstag, 6. Juni 2017 17:28:00 UTC+2 schrieb Tim Graham: > > Yes, fixed in > https://github.com/django/django/commit/fc13a697b41568993ba02b7c52bb863456af6c84. >

Can the Django PostgreSQL module support Chinese search?

2017-06-06 Thread brian
I am the most I use a misago forum, set Chinese language, use the search function, did not return any data, the data is actually, I asked my Misago team, said they are using Django full text retrieval module, let me ask Django team, so that someone can help me? -- You received this message bec

Re: Django in Production and Virtualenv

2017-06-06 Thread Antonis Christofides
Hi, 1. Virtualenv can be used on production. You don't need to "activate" it, you can just execute the Python interpreter inside the virtualenv. "Virtualenv demystified " explains it in detail. With mod_wsgi you can

Re: makemigrations running for all apps defined in INSTALLED_APPS

2017-06-06 Thread Priyanka Thakur
Nothing helps till now !! Thanks, Priyanka On Tuesday, 6 June 2017 12:22:00 UTC+5:30, Priyanka Thakur wrote: > > Hi, > > I am migrating from Django 1.7.4 to Django 1.10.0 and is facing issue > while running migrations. > > I am running the comand : python manage.py makemigrations > > Scenario,

Django in Production and Virtualenv

2017-06-06 Thread Bruce Whealton
Hello all, There is a topic of confusion for me related to Apache and mod_wsgi. I have been using two cloud providers DigitalOcean and PythonAnywhere. The latter actually let me get a home page being served by apache and not the development server ( which actually isn't even an op

Re: Django settings - customize attributes per Site from admin

2017-06-06 Thread Melvyn Sopacua
On Tuesday 06 June 2017 06:42:07 Pablo Camino Bueno wrote: > Some of these fields are actually values that should be used in the > settings file, like EMAIL_HOST_USER. > > > How can I use these values in the settings file of the custom sites? > is this the correct approach? Take a look at mezza

Re: Filefield uploads in django admin

2017-06-06 Thread Melvyn Sopacua
On Tuesday 06 June 2017 08:59:06 Tim Graham wrote: > The default behavior of FileSystemStorage is, "If a file with name > already exists, an underscore plus a random 7 character alphanumeric > string is appended to the filename before the extension." Do you want > to always overwrite existing fil

Re: Channels : disconnect alone

2017-06-06 Thread Andrew Godwin
Are you accepting the connection in a consumer on `websocket.connect`? Is there some proxy in the way that's dropping WebSocket packets, meaning the ping times out and Daphne closes it? There's a lot of reasons why a websocket can close after a timeout, and most of them are related to your setup a

Re: template drop down menu

2017-06-06 Thread sum abiut
Thanks heaps for your response. I will have a look into it. Cheers, On Wed, Jun 7, 2017 at 9:22 AM, Bernd Wechner wrote: > If you want a sample for a javascript postback when drop down changes I > have one here: > > https://github.com/bernd-wechner/CoGs/blob/master/ > Leaderboards/templates/CoG

Re: Django: Importing python modules into static webpage

2017-06-06 Thread yingi keme
By static files, i believe you are talking about webpage files. First of all, you cant import a module to a static files. What you can do is to use the jinja logic in your webpage files. But then you have to create a context that will enable you render python objects to your webpages. I deepl

Re: template drop down menu

2017-06-06 Thread Bernd Wechner
If you want a sample for a javascript postback when drop down changes I have one here: https://github.com/bernd-wechner/CoGs/blob/master/Leaderboards/templates/CoGs/view_leaderboards.html It's attached to the select "selNames" which you can trace to the Django view "ajax_Leaderboards" in: ht

Django: Importing python modules into static webpage

2017-06-06 Thread ABHIJIT ROY
I am very new to Django. Recently I was developing a site just for getting aquainted with the framework and I came to a point where I needed to import a python module such as request,pytube etc into a static webpage so that i can use their functions . So two questions arose - 1. Is it possib

Re: template drop down menu

2017-06-06 Thread sum abiut
Thanks heaps for your response. It really clear things up and help me get started. Cheers, On Wed, Jun 7, 2017 at 5:05 AM, ludovic coues wrote: > The short answer to "how can I know what option is selected before > doing the queyr" is "you cannot know". > > Here is a quick drawing of your tim

Re: After Django

2017-06-06 Thread ludovic coues
It really depend what you want to do. If you want to make use of your skill by yourself, Yingi Kem is giving good advice. If you want to learn different skill, you can have a look at some frontend technology. If you are not a graphic person, learn how to use a css framework, like bootstrap. They

Re: template drop down menu

2017-06-06 Thread ludovic coues
The short answer to "how can I know what option is selected before doing the queyr" is "you cannot know". Here is a quick drawing of your timeline request to your server -> process view (where you do db request) -> process template -> send request back to user -> user select an option At no poin

Channels : disconnect alone

2017-06-06 Thread Okok kokok
Hello, I dont't understand why websocket disconnect alone... I run with these commands : - daphne -e ssl::privateKey=:certKey= .asgi:channel_layer -p -b 0.0.0.0 - python3.5 manage.py runworker I have this : 127.0.0.1:50398 - - [22/May/2017:11:30:01] "WSCONNECTING /" - - 127.0.0.

Re: Filefield uploads in django admin

2017-06-06 Thread Tim Graham
The default behavior of FileSystemStorage is, "If a file with name already exists, an underscore plus a random 7 character alphanumeric string is appended to the filename before the extension." Do you want to always overwrite existing files if a file with that name already exists? That's a bit

Re: Typo in the tutorial

2017-06-06 Thread Tim Graham
Thanks for the report. Here's a PR with that change and a few others: https://github.com/django/django/pull/8609 On Tuesday, June 6, 2017 at 8:55:09 AM UTC-4, Anders Vik wrote: > > Regarding: https://docs.djangoproject.com/en/1.11/intro/tutorial05/ > > I believe the name QuestionIndexDetailTests

Re: SingleObjectMixin docs Typo?

2017-06-06 Thread Tim Graham
Yes, fixed in https://github.com/django/django/commit/fc13a697b41568993ba02b7c52bb863456af6c84. Thanks. On Tuesday, June 6, 2017 at 8:44:31 AM UTC-4, guettli wrote: > > Current docs of SingleObjectMixin.get_context_data(): > > > *> Returns context data for displaying the list of objects.* > Sou

Re: Generic Search for any Django Model

2017-06-06 Thread guettli
Thank you Melvyn Sopacua, I was blind :-) Am Freitag, 2. Juni 2017 16:19:10 UTC+2 schrieb Melvyn Sopacua: > > On Friday 02 June 2017 07:10:15 guettli wrote: > > > There are several libraries which enable you to do fancy pagination of > > > django queryset. > > > > > > See this grid: https://djang

Filefield uploads in django admin

2017-06-06 Thread Andy Cheesman
Hi everyone I've a problem using filefields in the admin module.I've a standard model which is has a FileField (which I use to upload pdfs) When I'm in the administration console and attempt to upload a pdf, the filename is modified from name.pdf to name_.pdf. I would like the uploaded file

Django settings - customize attributes per Site from admin

2017-06-06 Thread Pablo Camino Bueno
Hi, I'm using django sites framework. I've a model with a OneToOneField to Site model. This way the admin users can customize each site attributes from the admin panel. class CustomSite(models.Model): site = models.OneToOneField(Site) email_host_user = models.EmailField() ... S

Re: makemigrations running for all apps defined in INSTALLED_APP

2017-06-06 Thread Melvyn Sopacua
On Tuesday 06 June 2017 05:45:32 devansh dixit wrote: > > just run >>> python manage.py migrations this will help > > you No, it won't. First it's `makemigrations`, second, he doesn't want to migrate the model, just the code. It's an unmanaged model, so the correct fix, as Daniel pointed out i

Typo in the tutorial

2017-06-06 Thread Anders Vik
Regarding: https://docs.djangoproject.com/en/1.11/intro/tutorial05/ I believe the name QuestionIndexDetailTests is wrong, I think it should be QuestionDetailTests :) -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this grou

Re: makemigrations running for all apps defined in INSTALLED_APP

2017-06-06 Thread devansh dixit
> > just run >>> python manage.py migrations this will help > you On Tuesday, June 6, 2017 at 12:22:00 PM UTC+5:30, Priyanka Thakur wrote: > > Hi, > > I am migrating from Django 1.7.4 to Django 1.10.0 and is facing issue > while running migrations. > > I am running the comand : python manage

SingleObjectMixin docs Typo?

2017-06-06 Thread guettli
Current docs of SingleObjectMixin.get_context_data(): *> Returns context data for displaying the list of objects.* Source: https://docs.djangoproject.com/en/1.11/ref/class-based-views/mixins-single-object/#django.views.generic.detail.SingleObjectMixin.get_context_data I don't understand "the li

Re: Same tutorial different day

2017-06-06 Thread Melvyn Sopacua
On Monday 05 June 2017 11:24:08 kit...@gmail.com wrote: > I was attempting the tutorial titled "Writing your first Django app". > The tutorial appears to be very simple, but it does not seem to work. > I have frustrated myself by attempting to do it from scratch after > failing last week. If I c

Re: After Django

2017-06-06 Thread yingi keme
You can start your own web application project if you have any start-up idea. You can also create a web service since you have a good knowledge of the REST framework. I think its all about what you want to do with your knowledge Yingi Kem > On 6 Jun 2017, at 8:54 AM, Karan Tatiwala wrote: >

Re: Same tutorial different day

2017-06-06 Thread knbk
You should move the `polls/` subdirectory to the outer `mysite/` directory, rather than the inner `mysite/mysite/` directory. The tutorial does actually say this, but admittedly it's easy to miss: Your apps can live anywhere on your Python path >

Re: Same tutorial different day

2017-06-06 Thread Jani Tiainen
Hi, If you feel that Django official tutorial isn't verbose enough, you could try out Django Girls tutorial [1] [1] https://tutorial.djangogirls.org/en/ On 05.06.2017 21:24, kit...@gmail.com wrote: I was attempting the tutorial titled "Writing your first Django app". The tutorial appears t

Re: makemigrations running for all apps defined in INSTALLED_APPS

2017-06-06 Thread Daniel Roseman
On Tuesday, 6 June 2017 07:52:00 UTC+1, Priyanka Thakur wrote: > > Hi, > > I am migrating from Django 1.7.4 to Django 1.10.0 and is facing issue > while running migrations. > > I am running the comand : python manage.py makemigrations > > Scenario, is that we araccessing model from Oracle databa

After Django

2017-06-06 Thread Karan Tatiwala
Hello, I am currently working on Django and REST framework, now I have a pretty good command over Django. What should be next thing I should start in this field. Can someone please help me out with this. -- You received this message because you are subscribed to the Google Groups "Django user