Re: Rest Framework and Swagger

2016-11-07 Thread pradam programming
Hi Tom, I have Implemented Swagger for CBV but i dont know how to do it for FBV..? Please Help me out..!! On Mon, Nov 7, 2016 at 4:14 PM, Tom Christie wrote: > https://github.com/marcgibbons/django-rest-swagger > > > On Saturday, 5 November 2016 16:17:10 UTC, pradam.programming wrote: >> >> Hi G

Re: Access request body in the django.request logger

2016-11-07 Thread Justin Wilson
Sorry, I had those reversed. It works find WITH uWSGI, and fails with the Django dev server. On Monday, November 7, 2016 at 2:48:14 PM UTC-7, Justin Wilson wrote: > > Stumbled across this post while trying to solve the same issue > *(we've had this issue since 1.10 release, but have kept with 1.

Re: Admin site - prepopulating field based on foreign key

2016-11-07 Thread dodrian
Thanks, smart-selects has shown me how to do exactly what I wanted. On Friday, 4 November 2016 10:36:58 UTC-5, Derek wrote: > > You need a third-party app e.g. > > https://github.com/digi604/django-smart-selects > > > On Thursday, 3 November 2016 19:21:14 UTC+2, dod...@gmail.com wrote: >> >> I'm h

Re: Access request body in the django.request logger

2016-11-07 Thread Justin Wilson
Stumbled across this post while trying to solve the same issue *(we've had this issue since 1.10 release, but have kept with 1.9 due to this issue).*We're only getting this with Django 1.10+ when running behind uWSGI. The issue goes away if we just run the Django dev server. On Thursday, Septem

separating group editing permission from custom group extension permission

2016-11-07 Thread Larry Martell
I have extended the group model and added a custom field and permission. I want to be able to give a user permission to edit this new field, but not have permission to edit any of the other group attributes. But if I do not grant the 'can change group' permission they cannot get to the group admin

Re: External access

2016-11-07 Thread Thomas Fuller
I don't totally understand how it works under the hood, but using the answer Michal Petrucha provided earlier has worked for me in this situation independent of the OS and any router settings. Run the server using: python manage.py runserver *0.0.0.0:8000 * You'll be able to

Re: External access

2016-11-07 Thread GMail
> Connecting To 24.211.133.163...Could not open connection to the host, on port > 23: Connect failed. You forgot to specify port, command should be 'telnet 24.211.133.163 8000' (if you're running Django on different port, change 8000 to your port). > How would I do that? I believe it was mention

Re: One template for multiple views

2016-11-07 Thread ludovic coues
You can also have a base template, with a block for the title then extends that base template with the extends tags. 2016-11-07 20:25 GMT+01:00 Moreplavec : > Yes, i know i can pass data (variables) from view to template. But my > question is, if i have report, for example with headline "This mont

RE: One template for multiple views

2016-11-07 Thread Matthew Pava
I would use an if block in the template, and actually, I do use an if block. So I would have either two context variables with this_month and last_month or I would look up some filter or template tag to find the month of the current datetime object in the Django documentation. {% if month = thi

Re: One template for multiple views

2016-11-07 Thread Moreplavec
Yes, i know i can pass data (variables) from view to template. But my question is, if i have report, for example with headline "This month" and same report for previous with headline "Previous month", if i can such things solve directly in template, based on view which is calling template. I do

Re: External access

2016-11-07 Thread bob gailer
On 11/7/2016 1:23 PM, GMail wrote: Wow... Indeed, in Windows telnet is disabled by default. Here's how you can enable it (first link on Google): https://www.rootusers.com/how-to-enable-the-telnet-client-in-windows-10/ C:\Users\bgailer>telnet 24.211.133.163 Connecting To 24.211.133.163...Could n

Re: External access

2016-11-07 Thread GMail
Wow... Indeed, in Windows telnet is disabled by default. Here's how you can enable it (first link on Google): https://www.rootusers.com/how-to-enable-the-telnet-client-in-windows-10/ I believe the problem is (how somebody

Re: External access

2016-11-07 Thread bob gailer
On 11/7/2016 8:58 AM, Andreas Kuhne wrote: Do you have "ALLOWED_HOSTS" correclty configured in django settings? Thanks - was not aware of that. Now it looks like: ALLOWED_HOSTS = ['209.216.2.211', '209.216.15.70', '24.211.133.163'] The last one is my external ip Adding the ip addresses did not

Re: External access

2016-11-07 Thread Larry Martell
On Mon, Nov 7, 2016 at 1:15 PM, bob gailer wrote: > On 11/7/2016 8:50 AM, Larry Martell wrote: >> >> On Mon, Nov 7, 2016 at 8:48 AM, bob gailer wrote: >>> >>> I am running a the django server, listening at port 8000. I can access >>> the >>> server using localhost. When I try using my external ip

Re: External access

2016-11-07 Thread bob gailer
On 11/7/2016 8:51 AM, GMail wrote: Hi! Seems like port forwarding doesn't work correctly. Do you have any other ports forwarded (like ssh or ftp)? If so, do they work as expected? What is this command's output: telnet 8000 Sorry but I'm running Windows 10 which does not recognize "telnet" Bo

Re: External access

2016-11-07 Thread bob gailer
On 11/7/2016 8:50 AM, Larry Martell wrote: On Mon, Nov 7, 2016 at 8:48 AM, bob gailer wrote: I am running a the django server, listening at port 8000. I can access the server using localhost. When I try using my external ip address I get "The server at 24.211.133.163 is taking too long to respo

Re: Need help to catch "cart_id" based on session.

2016-11-07 Thread Melvyn Sopacua
On Sunday 06 November 2016 21:00:44 ludovic coues wrote: > I would try request.session.get('cart_id', None) instead of > request.session['card_id']. Negative. First, this is part of the 3rd party app "doorsale". Secondly, at this stage in the order process a cart id SHALL be present in the sessi

Re: Storing settings

2016-11-07 Thread Melvyn Sopacua
Hi, On Saturday 05 November 2016 15:26:52 Bogdan P. wrote: > {% for quadrant in priority_groups %} > onchange="$('#quadrant-form').submit()"> > {% for option in quadrant.quadrant.all %} >{% if user_profile.quadrant1 == option.id %} ^^^

Re: External access

2016-11-07 Thread Michal Petrucha
On Mon, Nov 07, 2016 at 08:48:25AM -0500, bob gailer wrote: > I am running a the django server, listening at port 8000. I can access the > server using localhost. When I try using my external ip address I get "The > server at 24.211.133.163 is taking too long to respond." I have port 8000 > forward

Re: Django 1.10.3 with Oracle database and --keepdb

2016-11-07 Thread Mariusz Felisiak
It will appear in the next release. W dniu poniedziałek, 7 listopada 2016 14:38:46 UTC+1 użytkownik Carsten Fuchs napisał: > > Am 05.11.2016 um 15:55 schrieb Carsten Fuchs: > > Am 2016-11-05 um 13:11 schrieb Mariusz Felisiak: > >> Yes. Please, make sure that your main oracle user has *ALTER USE

Re: External access

2016-11-07 Thread Andreas Kuhne
Do you have "ALLOWED_HOSTS" correclty configured in django settings? Regards, Andréas 2016-11-07 14:48 GMT+01:00 bob gailer : > I am running a the django server, listening at port 8000. I can access the > server using localhost. When I try using my external ip address I get "The > server at 24.

Re: External access

2016-11-07 Thread GMail
Hi! Seems like port forwarding doesn't work correctly. Do you have any other ports forwarded (like ssh or ftp)? If so, do they work as expected? What is this command's output: telnet 8000 > On 7 Nov 2016, at 16:48, bob gailer wrote: > > I am running a the django server, listening at port 8000

Re: External access

2016-11-07 Thread Larry Martell
On Mon, Nov 7, 2016 at 8:48 AM, bob gailer wrote: > I am running a the django server, listening at port 8000. I can access the > server using localhost. When I try using my external ip address I get "The > server at 24.211.133.163 is taking too long to respond." I have port 8000 > forwarded to my

External access

2016-11-07 Thread bob gailer
I am running a the django server, listening at port 8000. I can access the server using localhost. When I try using my external ip address I get "The server at 24.211.133.163 is taking too long to respond." I have port 8000 forwarded to my server computer in my router. What more do I need to do

Re: Django 1.10.3 with Oracle database and --keepdb

2016-11-07 Thread Carsten Fuchs
Am 05.11.2016 um 15:55 schrieb Carsten Fuchs: Am 2016-11-05 um 13:11 schrieb Mariusz Felisiak: Yes. Please, make sure that your main oracle user has *ALTER USER* permission. I'll check (it may take until Monday or Tuesday though) and post an update here. Indeed, after having added the ALTER

Re: Django1.9 Mongodb support

2016-11-07 Thread GMail
Hi, "without any problem" is a bit strong since you can't just plug mongoengine into Django. You would have to take care of all models and interaction with them. However if Mongo is absolutely required for your project it can be done. > On 5 Nov 2016, at 01:25, mpita1984 wrote: > > mongoengine

Re: Django (Admin Page)

2016-11-07 Thread ludovic coues
Hello, If you are talking about your model, you need to create a ModelAdmin class [1] for your models. There is an exemple of how to do so in the django tutorial [2]. [1] https://docs.djangoproject.com/en/1.10/ref/contrib/admin/#modeladmin-objects [2] https://docs.djangoproject.com/en/1.10/intro

Re: Rest Framework and Swagger

2016-11-07 Thread Tom Christie
https://github.com/marcgibbons/django-rest-swagger On Saturday, 5 November 2016 16:17:10 UTC, pradam.programming wrote: > > Hi Guys, > Please I need an advice on the best approach to take on the following > issues. > > How can i Implement Swagger for CBV and FBV in rest framework ...? > -- You

Django (Admin Page)

2016-11-07 Thread Rashmi Pandey
How can i display data base table on admin page... -- 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. To post to this gro