Removing Hardcoded urls in Templates

2019-12-10 Thread Bruckner de Villiers
Running Django 3.0 & Python 3.7.3. Issue with Tutorial Part 3: I replaced “{{ question.question_text }}” with “{{ question.question_text }}” and get the following error: Reverse for 'detail' not found. 'detail' is not a valid view function or pattern name. {{ question.question_text }} index

Re: Removing Hardcoded urls in Templates

2019-12-10 Thread Sencer Hamarat
Would you please replace url name with 'polls:detail', as described at https://docs.djangoproject.com/en/3.0/topics/http/urls/#id5 Saygılarımla, Sencer HAMARAT On Tue, Dec 10, 2019 at 1:58 PM Bruckner de Villiers < bruckner.devilli...@gmail.com> wrote: > Running Django 3.0 & Python 3.7.3. > >

Re: Removing Hardcoded urls in Templates

2019-12-10 Thread Daniel Hepper
It should be {% url 'polls:detail' question.id %} I think you mixed up the steps "Removing hardcoded URLs in templates" and "Namespacing URL names" Hope that helps, Daniel On Tue, Dec 10, 2019 at 11:58 AM Bruckner de Villiers < bruckner.devilli...@gmail.com> wrote: > Running Django 3.0 & Python

Re: Sending XML data from Django to another server (SAP)

2019-12-10 Thread Pema Galey
Thank you for your interest.. But I have developed my Django application and now I am looking for best method to send data from Django server to SAP using XML Format. Just I want the recommendation. Thank you > On Dec 7, 2019, at 6:46 PM, Dvs Khamele wrote: > > Hi do you hire contract based py

Re: Removing Hardcoded urls in Templates

2019-12-10 Thread GGFU GAME
Your code: “<*li*><*a* href="{% *url* 'detail' question.id %}">{{ question.question_text }}” Try addinga polls:detail like this: “<*li*><*a* href="{% *url* 'polls:detail' question.id %}">{{ question.question_text }}” uto, 10. dec 2019. 11:58 Bruckner de Villiers је написао/ла: > Running Dja

Re: Hiring an engineer in San Francisco

2019-12-10 Thread Integr@te System
Hi PollyEx team, Thank for your sharing. On Tue, Dec 10, 2019, 06:03 Erik Gunderson wrote: > PollyEx is hiring a full stack software engineer with an emphasis in > django. Our team is looking for a full-time employee able to work in our > San Francisco office. The stack is python/django/pandas

Re: Sending XML data from Django to another server (SAP)

2019-12-10 Thread Integr@te System
Hi, https://pypi.org/project/django-import-export-xml/ On Tue, Dec 10, 2019, 19:20 Pema Galey wrote: > Thank you for your interest.. > But I have developed my Django application and now I am looking for best > method to send data from Django server to SAP using XML Format. > Just I want the reco

Re: Django Error - 'staticfiles' is not a registered tag library. Must be one of: admin_list admin_modify admin_urls

2019-12-10 Thread Dvs Khamele
https://stackoverflow.com/questions/18321684/staticfiles-is-not-a-valid-tag-library-template-library-staticfiles-not-found See this, Add these lines, django.contrib.staticfiles to INSTALLED_APPS in settings.py On Tue, 10 Dec 2019 at 21:29, Balaji Shetty wrote: > Hi > > I am getting error for

passing an argument to ListView class and accessing using kwargs

2019-12-10 Thread Patrick Carra
Hello I am attempting to pass an argument to a Class(ListView) and then perform a filter using a kwarg that contains the argument passed in the url. I am having a problem because I cannot access the variable in the url using kwargs. I am not sure what I'm doing wrong below is the link that I'

Re: passing an argument to ListView class and accessing using kwargs

2019-12-10 Thread Patrick Carra
One more additional note this is the url that gets access when the link is clicked http://98.8.61.133:8080/viewLit/St.%20Louis%20to%20Mt.%20Vernon/viewutilization -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group a

Re: passing an argument to ListView class and accessing using kwargs

2019-12-10 Thread Dominick Del Ponte
I think you need to add ** to kwargs. like: qs = Utilizationtable.objects.filter(pathname=**kwargs) alternatively, this may also work, def get_queryset(self): return self.model.objects.filter(pathname=self.kwargs['pathname']) Dominick delponte.d...@gmail.com On Wed, Dec 11, 2019 at 8

Looking for internship

2019-12-10 Thread Anirudh choudhary
Hello all I am looking for internship in Delhi or pune. I am currently in 6 sem of engineering mechatronics in ADYPU. I am ready to work as part time , full time, home based. Thankyou -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscrib

Sometime it's happening this error on server on django application

2019-12-10 Thread Rupam Hazra
Exception happened during processing of request from ('47.11.53.147', 47572) Traceback (most recent call last): File "/usr/local/lib/python3.7/socketserver.py", line 647, in process_request_thread self.finish_request(request, client_address) File "/usr/local/lib/python3.7/socketserver.py"

Python Email Parsing and Email Signature Extraction

2019-12-10 Thread Ajeet Kumar Gupt
Hi Team, I need one help from python how to extract contact and email address from Gmail signature in an excel sheet. -- *Thanks & Regards* Ajeet Kumar Gupt +91-9311232332 -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe f

Need to Query complex django model

2019-12-10 Thread Nitin Kalmaste
Hello community, I need to make django views for the models described below. How do i create query to write in view https://stackoverflow.com/questions/59280345/how-to-query-django-models-for-complex-models-like-this Please Need Help seriously -- You received this message because you are subscr

Re: Removing Hardcoded urls in Templates

2019-12-10 Thread Bruckner de Villiers
Thank you Sencer. Bruckner de Villiers 083 625 1086 From: on behalf of Sencer Hamarat Reply to: Date: Tuesday, 10 December 2019 at 13:51 To: Subject: Re: Removing Hardcoded urls in Templates Would you please replace url name with 'polls:detail', as described at https://docs.dj

Re: Removing Hardcoded urls in Templates

2019-12-10 Thread Bruckner de Villiers
Thank you Daniel. Bruckner de Villiers 083 625 1086 From: on behalf of Daniel Hepper Reply to: Date: Tuesday, 10 December 2019 at 13:54 To: Subject: Re: Removing Hardcoded urls in Templates It should be {% url 'polls:detail' question.id %} I think you mixed up the steps "Remov

Re: Sometime it's happening this error on server on django application

2019-12-10 Thread Sencer Hamarat
This look like the peer (the client whom the connecting to server) connection is abnormally interrupted. The possibilities are very broad. This could be happening by client software, driver or hardware. Also, this could causing by client's physical internet connection from LAN cable to ISP. Saygıl