Re: Django channels on IIS

2019-05-23 Thread Daniel Butler
It looks like I found my key I had to install the application module CGI then use this library to get everything to work! https://pypi.org/project/wfastcgi/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and

Re: Django channels on IIS

2019-05-23 Thread Daniel Butler
Unfortunately On Thu, May 23, 2019 at 10:09 PM Aldian Fazrihady wrote: > IIS still exists? > > On Fri, 24 May 2019, 09:04 Daniel Butler, wrote: > >> First off I love this project. Django Channels is amazing! >> >> I just wanted to see if anyone has had any success with using iis with >>

Re: Django channels on IIS

2019-05-23 Thread Aldian Fazrihady
IIS still exists? On Fri, 24 May 2019, 09:04 Daniel Butler, wrote: > First off I love this project. Django Channels is amazing! > > I just wanted to see if anyone has had any success with using iis with > Django-Channels since this post over 2 years ago. > > Thank you! > > -- > You received

Re: Django channels on IIS

2019-05-23 Thread Daniel Butler
First off I love this project. Django Channels is amazing! I just wanted to see if anyone has had any success with using iis with Django-Channels since this post over 2 years ago. Thank you! -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Locating web app in mysite directory ?

2019-05-23 Thread Joseph Jones
Hello fellow community members, I’m working on a Django project using PyCharm on my pc. I’ve run command ‘>py manage.py startapp hypotheticalapp’. To ensure my app does in fact exist However if I enter into my mysite directory on file explorer the ‘hypotheticalapp’ file is nowhere to be found any

Re: My developers have run amok

2019-05-23 Thread Mike Dewhirst
On 23/05/2019 3:30 am, Dan Davis wrote: Sure - setting it up is easy.   There are hard questions about database mutations however.   If you drop column bar from table Fubar, then the old code is still querying for buth Fu and Bar: SELECT id, fu, bar FROM fubar On-premise, this is the

Re: Error during template rendering

2019-05-23 Thread Jim Illback
This error comes when there is a {% url %} tag that is not set up properly - like the views.py line highlighted below. So, I suspect you have such a tag say tied to a button on the html page, but it isn’t included in this thread. There’s another error in the code not related to your reverse

Re: Error during template rendering

2019-05-23 Thread cixtus anyanwu
Still got this erorr. thanks File "C:\Users\ANYANWU\djangogirls\myvenv\lib\site-packages\django\urls\resolvers.py", line 634, in _reverse_with_prefix raise NoReverseMatch(msg) django.urls.exceptions.NoReverseMatch: Reverse for 'post_details' with keyword arguments '{'pk': 3}' not found.

Re: Error during template rendering

2019-05-23 Thread Jim Illback
Below, post is a DB row, not an ID as the URL.py requires. Change the view as: return render(request, ‘blog/post_details.html’, {‘pk’: posts[‘id’]}) Jim On May 23, 2019, at 11:10 AM, Rock N Roll Mühlbacher mailto:chmuhlbache...@gmail.com>> wrote: Am Donnerstag, 23. Mai 2019 20:06:31 UTC+2

Re: Error during template rendering

2019-05-23 Thread Rock N Roll Mühlbacher
Am Donnerstag, 23. Mai 2019 20:06:31 UTC+2 schrieb cixtus anyanwu: > Guys am following the django girls pdf tutoril but am stuck here. Its saying: > > > > django.urls.exceptions.NoReverseMatch: Reverse for 'post_details' with > keyword arguments '{'pk': 3}' not found. 1 pattern(s) tried:

Re: 1 project, X app = X subdomains (Django, Apache)

2019-05-23 Thread Aldian Fazrihady
Official way: 1. Run separate wsgi process for each subdomain. Each wsgi process uses unique Unix or TCP socket. 2. Each wsgi process uses its own Django settings that points to the specific app's urls.py 3. The web server configuration for each subdomain points to the socket of the Django app

Error during template rendering

2019-05-23 Thread cixtus anyanwu
Guys am following the django girls pdf tutoril but am stuck here. Its saying: django.urls.exceptions.NoReverseMatch: Reverse for 'post_details' with keyword arguments '{'pk': 3}' not found. 1 pattern(s) tried: ['posts//$'] [23/May/2019 18:13:22] "GET / HTTP/1.1" 500 153773 *my views.py is

Re: 1 project, X app = X subdomains (Django, Apache)

2019-05-23 Thread Tim Chase
On 2019-05-23 06:22, Jakub Jiřička wrote: > I want to ask you if someone has solved how to prove that is > possible the applications in one project run in different > subdomains? > > I have 1 project (projekt.cz) and provide of 3 applications (app1, > app2, app3) and I would like to get on my vps

Re: Write urls without regex in DRF

2019-05-23 Thread nm
Yes, it's possible to write this code without using regexp, and it should work the same. If you have a look at the source code of the routers, there's a method `get_urls` in SimpleRouter (you can find it here

1 project, X app = X subdomains (Django, Apache)

2019-05-23 Thread Jakub Jiřička
Hi, I want to ask you if someone has solved how to prove that is possible the applications in one project run in different subdomains? I have 1 project (projekt.cz) and provide of 3 applications (app1, app2, app3) and I would like to get on my vps (CentOS, Apache, PostgreSQL, Django)

How to report data migration error?

2019-05-23 Thread Victor Porton
Which exception should be raised if my data migration code finds that the data in the DB has a logical error and cannot be migrated for this reason? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop

Re: Show different views based on user

2019-05-23 Thread Enderson Menezes
>From what I've seen you're using a Django Filters framework or REST Framework, if so, in my opinion I would develop two API's and control their access to the constraints which would make them secure. One of these apis would make one general query and the other specific. Em quarta-feira, 22 de

Re: How to create a login form with two more forms in it

2019-05-23 Thread laurine ogutu
Thank you all On Wed, May 15, 2019, 2:55 PM arun ashok > https://www.codementor.io/lakshminp/handling-multiple-forms-on-the-same-page-in-django-fv89t2s3j > this > will get you some idea about loading multiple forms in a temlate.If you > want to hide the forms related to button click,add the

Re: Show different views based on user

2019-05-23 Thread Balaji Shetty
HI Consider this example and you may get the solution Model name is Profile and in admin.py override this def get_form(self, request, obj=None, **kwargs): - admin.py from django.contrib.auth.models import User class

Re: Display data from the news api json

2019-05-23 Thread Enderson Menezes
If you have the api running, and in the browser you get the display of your data. Your problem is not about django is about a language or a framework to program mobile. Em quinta-feira, 23 de maio de 2019 10:06:12 UTC-3, Thiago brayo escreveu: > > I have been using the news api to fetch

Display data from the news api json

2019-05-23 Thread Thiago brayo
I have been using the news api to fetch articles. Have the json data but I cant seem to figure out how to display it on my app. Any help will be appreciated. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and

Re: Filtering Data Based On Foreign Key

2019-05-23 Thread Simon A
Have you tried putting the load_price() code inside the init code? like def __init__(self, *args, **kwargs): super(PlayerRegistrationForm, self).__init__(*args, **kwargs) self.fields['club_id'].widget = forms.HiddenInput() membership = request.GET.get('membership_title')

Re: some random problem

2019-05-23 Thread Simon A
share the code here. I know django devs are lazy but don't be this lazy. On Wednesday, May 22, 2019 at 8:07:08 PM UTC+8, Soumen Khatua wrote: > > Hi Folks, > > I'm getting len(cart) is 0 and after iterate *item is not coming from > cart* in this project,plese tell me where is my problem. > I'm

Re: Dealing with global or session objects

2019-05-23 Thread Simon A
Hello fellow Java user, If I would do it, I'd setup a model to store those configurations. Then on the app, upon login or upon loading the initial page of the app, I will perform the operation to retrieve the details from the database, and then dump to the django sessions object. # get