Re: Django urls error

2023-04-23 Thread Nitesh Solanki
apitals, name='hello_delhi_capitals'), ] -- Code: myapp/urls.py ### refers to all the common route associated to 'myapp' app from django.http import HttpResponse def hello_delhi_capitals(request): return HttpResponse('Hello De

Re: Django urls error

2023-04-22 Thread ritik sahoo
Exactly On Tue, 18 Apr, 2023, 3:46 am Tarun Miri, wrote: > You may not write any string on the urls.py of myapp/urls.py > Ex path('',hello_delhi_capitals,name="hello_delhi_capitals"), > > On Sat, 15 Apr, 2023, 7:29 am Muhammad Juwaini Abdul Rahman, < > juwa...@gmail.com> wrote: > >> In your urls

Re: Django urls error

2023-04-17 Thread Tarun Miri
You may not write any string on the urls.py of myapp/urls.py Ex path('',hello_delhi_capitals,name="hello_delhi_capitals"), On Sat, 15 Apr, 2023, 7:29 am Muhammad Juwaini Abdul Rahman, < juwa...@gmail.com> wrote: > In your urls.py you use '/hello' but in your browser you type '/home'. > > On Sat,

Re: Django urls error

2023-04-17 Thread Tahir Munir Faraz
do not write hello at the project level This is not correct path('hello/', include('myapp.urls')), The code below is correct path('' ",include("myapp.urls"), On Sun, 16 Apr 2023 at 21:34, oluwafemi damilola wrote: > Your path is 'hello/', but in your browser you are going to 'home', that > path

Re: Django urls error

2023-04-16 Thread oluwafemi damilola
Your path is 'hello/', but in your browser you are going to 'home', that path does not exist On Fri, 14 Apr 2023 at 23:07, lalit upadhyay wrote: > *I have copied my code here. Plz fix this error:* > > > view.py > from django.http import HttpResponse > > > def hello_delhi_capitals(request): > ret

Re: Django urls error

2023-04-16 Thread oluwafemi damilola
If you are still getting the error if you visit the 'hello' path, then you should visit 'hello/hello/' On Sun, 16 Apr 2023 at 11:19, oluwafemi damilola wrote: > Your path is 'hello/', but in your browser you are going to 'home', that > path does not exist > > On Fri, 14 Apr 2023 at 23:07, lalit

Re: Django urls error

2023-04-15 Thread 'Kasper Laudrup' via Django users
On 14/04/2023 21.48, lalit upadhyay wrote: * I have copied my code here. The code is from a project called "myproject" Plz fix this error: The error is from a project called "Tesing". You can ignore all other answers you've been given so far until you figure out how that could be. Ki

Re: Django urls error

2023-04-15 Thread Karthik V A
Bro, From myapp/ urla.py Url pattern =[ Path('hello', views.hello_delhi_capitals, name = hello_delhi_capitals)] On Sat, 15 Apr, 2023, 8:35 pm b1t, wrote: > ou haven't defined the home url that you are trying to access > > On Saturday, 15 April 2023 at 03:37:38 UTC+5:30 lalit upadhyay wrote:

Re: Django urls error

2023-04-15 Thread Lawal Tobiloba Samuel
You are suppose to use localhost:8000/hello/hello. Because, you added hello as you path when you are including the app urls to the project url and also you made hello the path to the view of hello_delhi_ Which makes 2 hello's.. Use localhost:8000/hello/hello On Sat, Apr 15, 2023, 9:

Re: Django urls error

2023-04-15 Thread b1t
You define hello/ in your base urls.py file and again in your myapp/urls.py so that's create a URL like this "127.0.0.1/hello/hello". instead use this in your myapp/urls.py urlpatterns = [ path('', hello_delhi_capitals, name='hello_delhi_capitals'), ] On Saturday, 15 April 2023 at 13:57:36 UTC+

Re: Django urls error

2023-04-15 Thread አብርሃም መስፍን
remove 'hello' from myapp.py to access the site on 'hello' or you can access it at 'hello/hello' On Sat, Apr 15, 2023, 11:57 AM lalit upadhyay wrote: > I haven't used admin/ in my urls.py in myapp > from django.urls import path > > from . import views > > urlpatterns = [ > path('', views.index,

Re: Django urls error

2023-04-15 Thread Shaikh Mudassir
In *myproject/urls.py *you have defined a path *hello/* for *myapp *and then again you define *hello/ *for the hello_delhi_capitals method. Now, You have two solution 1. You call *http://127.0.0.1:8000/home/home * 2. You can remove */home* in *myproject/urls.py * like this *path(**'', include('

Re: Django urls error

2023-04-15 Thread Lawal Tobiloba Samuel
What I notice is that wgen you are creating ur urls at the project level, you used "hello/" and you include the the app level urls. If you want to request the route from the browser, you are suppose to use localhost:8000/hello, not localhost:home. Remember: you did not create a

Re: Django urls error

2023-04-15 Thread Lawal Tobiloba Samuel
So if you want to request you page, it will look like this, localhost:hello/hello. At the app level of the urls, you can leave that path empty like this. path(" ", views.delih.., name = "deliii") Then you can request you web page as localhost:/hello On Sat, Ap

Re: Django urls error

2023-04-15 Thread b1t
ou haven't defined the home url that you are trying to access On Saturday, 15 April 2023 at 03:37:38 UTC+5:30 lalit upadhyay wrote: > *I have copied my code here. Plz fix this error:* > > > view.py > from django.http import HttpResponse > > > def hello_delhi_capitals(request): > return HttpRespon

Re: Django urls error

2023-04-15 Thread b1t
You are trying to access the home/ URL which u haven't defined yet On Saturday, 15 April 2023 at 03:37:38 UTC+5:30 lalit upadhyay wrote: > *I have copied my code here. Plz fix this error:* > > > view.py > from django.http import HttpResponse > > > def hello_delhi_capitals(request): > return HttpR

Re: Django urls error

2023-04-15 Thread lalit upadhyay
I haven't used admin/ in my urls.py in myapp from django.urls import path from . import views urlpatterns = [ path('', views.index, name="index"), ] On Saturday, April 15, 2023 at 2:01:53 PM UTC+5:30 Karthik V A wrote: > Remove admin/ url pattern at urls.py in myapp > > On Sat, 15 Apr, 2023,

Re: Django urls error

2023-04-15 Thread Karthik V A
Remove admin/ url pattern at urls.py in myapp On Sat, 15 Apr, 2023, 1:58 pm lalit upadhyay, wrote: > > *I have replaced URL ‘home/’ to ‘hello/’ but still i got same error* > On Saturday, April 15, 2023 at 7:29:15 AM UTC+5:30 Muhammad Juwaini Abdul > Rahman wrote: > >> In your urls.py you use '/h

Re: Django urls error

2023-04-14 Thread Muhammad Juwaini Abdul Rahman
In your urls.py you use '/hello' but in your browser you type '/home'. On Sat, 15 Apr 2023 at 06:07, lalit upadhyay wrote: > *I have copied my code here. Plz fix this error:* > > > view.py > from django.http import HttpResponse > > > def hello_delhi_capitals(request): > return HttpResponse('Hell

Re: You are seeing this page because DEBUG=True is in your settings file and you have not configured any URLs.

2022-11-09 Thread Chukwudi Onwusa
Please What exactly is the name of your error? Is it showing 'page not found' ? If so, then kindly apply the urls to your localhost:8000/urls_name Regards... On Wed, Nov 9, 2022, 18:26 'Kasper Laudrup' via Django users < django-users@googlegroups.com> wrote: >

Re: You are seeing this page because DEBUG=True is in your settings file and you have not configured any URLs.

2022-11-09 Thread 'Kasper Laudrup' via Django users
On 09/11/2022 10.52, Priyanka Sivaratri wrote: Hi, I am new to django and I appreciate your quick help. I am able to run django server on localhost:8000 but I am seeing this error : *You are seeing this page because DEBUG=True is in your settings file and you have not configured any URLs

You are seeing this page because DEBUG=True is in your settings file and you have not configured any URLs.

2022-11-09 Thread Priyanka Sivaratri
Hi, I am new to django and I appreciate your quick help. I am able to run django server on localhost:8000 but I am seeing this error : *You are seeing this page because DEBUG=True is in your settings file and you have not configured any URLs.* urls.py: from django.contrib import admin from

How to test urls

2022-03-23 Thread Prashanth Patelc
Hi all, how test the urls in django rest , i need each url response how to write one file for each url response need to write a URL in our application, which will return working or something as a response ? * not test cases -- You received this message because you are subscribed to the

Re: Reversing URLs across services

2022-01-22 Thread Noemi Millman
o reverse a URL, since the format and variables for each path are recorded in the URLConf. But you can't create a URLConf without importing the views it calls; and Django will consider it invalid and refuse to parse/reverse those URLs for you if it doesn't have access to the views. Is

Re: Reversing URLs across services

2022-01-22 Thread Jason
ific. Is there a > way for Service A to reverse URLs served by Service B without having to > import all the dependencies that are necessary to execute Service B's views? > > thanks, > -Noemi > -- You received this message because you are subscribed to the Google Groups &

Reversing URLs across services

2022-01-22 Thread Noemi Millman
Hi folks -- Let's say you have two different services with different views and URLConfs; some shared modules/apps and some service-specific. Is there a way for Service A to reverse URLs served by Service B without having to import all the dependencies that are necessary to execute Servic

Re: Django Built in REST API and @urls decorator suppor

2021-07-12 Thread Guo Zhang
f there is a built-in REST API support for Django. And In the > views.py if we have a @urls(["/home", "/"]) decorator for function-based > view and for Class-based view URLs attribute that works as like flask and > fast API or other web backend frameworks it will b

Django Built in REST API and @urls decorator suppor

2021-07-11 Thread Emran Ibn Shayed
With due respect, it is my request that it will be better for Django developers if there is a built-in REST API support for Django. And In the views.py if we have a @urls(["/home", "/"]) decorator for function-based view and for Class-based view URLs attribute that works as

Re: struck at gettiing each product urls from addidas website

2021-06-21 Thread RANGA BHARATH JINKA
9:52 AM Lalit Suthar > wrote: > >> print(links) outside for loop. Even then if nothing prints means your >> `listings` is empty >> >> On Tue, 22 Jun 2021 at 08:51, ram manoj Vuyyuru < >> rammanojvuyy...@gmail.com> wrote: >> >>> HI >>&g

Re: struck at gettiing each product urls from addidas website

2021-06-21 Thread ram manoj Vuyyuru
ide for loop. Even then if nothing prints means your > `listings` is empty > > On Tue, 22 Jun 2021 at 08:51, ram manoj Vuyyuru > wrote: > >> HI >> help me for getting urls for each product >> import pandas as pd >> import requests >> from bs4 impo

Re: struck at gettiing each product urls from addidas website

2021-06-21 Thread Lalit Suthar
print(links) outside for loop. Even then if nothing prints means your `listings` is empty On Tue, 22 Jun 2021 at 08:51, ram manoj Vuyyuru wrote: > HI > help me for getting urls for each product > import pandas as pd > import requests > from bs4 import BeautifulSoup as bs >

struck at gettiing each product urls from addidas website

2021-06-21 Thread ram manoj Vuyyuru
HI help me for getting urls for each product import pandas as pd import requests from bs4 import BeautifulSoup as bs url = "https://www.adidas.com.my/en/men-shoes?start=0"; page = requests.get(url) soup = bs(page.text,"html.parser") links=[] listings = soup.find_all(

Re: Hi how to another app URL config to main project URLs

2021-03-20 Thread Omkar Parab
path('' ", include('name_of_your_app.urls')). Tip - You should learn more about, how to send an email. On Sat, Mar 20, 2021, 10:41 PM Mahendra wrote: > > > Mahendra Yadav > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe

Hi how to another app URL config to main project URLs

2021-03-20 Thread Mahendra
Mahendra Yadav -- 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 view this discussion on the web visit https://group

Re: setting up urls of many apps

2021-02-21 Thread Peter Kirieny
Thanks Jorge it was of great help On Sat, 20 Feb 2021 at 20:33, Jorge Gimeno wrote: > > > On Wed, Feb 17, 2021 at 11:00 PM RANGA BHARATH JINKA < > bharathjink...@gmail.com> wrote: > >> Hi, >> >> Please follow these docs >> https://docs.djangoproj

Re: setting up urls of many apps

2021-02-20 Thread Jorge Gimeno
On Wed, Feb 17, 2021 at 11:00 PM RANGA BHARATH JINKA < bharathjink...@gmail.com> wrote: > Hi, > > Please follow these docs > https://docs.djangoproject.com/en/3.1/ref/urls/#include > > On Thu, Feb 18, 2021 at 12:12 PM Peter Kirieny > wrote: > >> if self

Re: setting up urls of many apps

2021-02-17 Thread RANGA BHARATH JINKA
Hi, Please follow these docs https://docs.djangoproject.com/en/3.1/ref/urls/#include On Thu, Feb 18, 2021 at 12:12 PM Peter Kirieny wrote: > if self.pattern.name is not None and ":" in self.pattern.name: > TypeError: argument of type 'type' is not iterable >

Re: setting up urls of many apps

2021-02-17 Thread Peter Kirieny
OOT) >>> >>> >>> in the app's urls.py >>> >>> from django.urls import path >>> from .views import ShopsView >>> >>> app_name = 'Shops' >>> >>> urlpatterns = [ >>> path('Shops/'

Re: setting up urls of many apps

2021-02-17 Thread Peter Kirieny
h >> from .views import ShopsView >> >> app_name = 'Shops' >> >> urlpatterns = [ >> path('Shops/', ShopsView.as_view(), name=ShopsView) >> >> >> On Wed, 17 Feb 2021 at 17:52, Nicolas nasr wrote: >> >>> Can y

Re: setting up urls of many apps

2021-02-17 Thread RANGA BHARATH JINKA
from django.urls import path > from .views import ShopsView > > app_name = 'Shops' > > urlpatterns = [ > path('Shops/', ShopsView.as_view(), name=ShopsView) > > > On Wed, 17 Feb 2021 at 17:52, Nicolas nasr wrote: > >> Can you please show

Re: setting up urls of many apps

2021-02-17 Thread Peter Kirieny
ort ShopsView app_name = 'Shops' urlpatterns = [ path('Shops/', ShopsView.as_view(), name=ShopsView) On Wed, 17 Feb 2021 at 17:52, Nicolas nasr wrote: > Can you please show your urls.py file > > On Wednesday, February 17, 2021 at 8:31:50 AM UTC+2 kirien...@gmail

Re: setting up urls of many apps

2021-02-17 Thread Nicolas nasr
Can you please show your urls.py file On Wednesday, February 17, 2021 at 8:31:50 AM UTC+2 kirien...@gmail.com wrote: > someone to help me to set up urls of two different apps in django project > please, i keep on getting errors > am new > -- You received this message bec

Re: setting up urls of many apps

2021-02-17 Thread Peter Kirieny
_url_config return check_resolver(resolver) File "C:\Users\Admin\PycharmProject\Ecomm\venv\lib\site-packages\django\core\checks\urls.py", line 23, in check_resolver return check_method() File "C:\Users\Admin\PycharmProject\Ecomm\venv\lib\site-packages\django\urls\resolvers.

setting up urls of many apps

2021-02-16 Thread Peter Kirieny
someone to help me to set up urls of two different apps in django project please, i keep on getting errors am new -- 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, sen

Re: Error configuring URLs for a beginner

2020-08-31 Thread Arpana Mehta
otFoundError: No module named 'app.urls'* > > > app is what is created by python3 manage.py startapp app > > and project is what is created by python3 venv/bin/django-admin.py > startproject project > > > can you please explain to me how to resolve? I am trying to re

Error configuring URLs for a beginner

2020-08-31 Thread Manal Helal
reated by python3 manage.py startapp app and project is what is created by python3 venv/bin/django-admin.py startproject project can you please explain to me how to resolve? I am trying to read through different documentation of URL resolution and tried from app import views or from app im

Re: Django Reference Manual on what classes can be used with views, urls, etc...

2020-06-24 Thread Dennis Triplett
asses, or Djanago tools > > are allowed in its calling syntax... Example > > > from django.urls import path > from MyApplication import views > > > What I am looking for is an explanation of what things can be imported with > URLS, VIEWS, HTTP > > There are ot

Re: Django Reference Manual on what classes can be used with views, urls, etc...

2020-06-24 Thread Cbh Bnh
ing for is an explanation of what things can be imported with > URLS, VIEWS, HTTP > > There are other classes each can use, but I have not been able to find any > source or book > > that outlines all the classes or commands that can be used in Django > statements using... >

Re: Django Reference Manual on what classes can be used with views, urls, etc...

2020-06-24 Thread Cbh Bnh
I am looking for is an explanation of what things can be imported with > URLS, VIEWS, HTTP > > There are other classes each can use, but I have not been able to find any > source or book > > that outlines all the classes or commands that can be used in Django > statements

Django Reference Manual on what classes can be used with views, urls, etc...

2020-06-23 Thread Dennis Triplett
I have been looking for a Django Reference Manual to let me know what classes, or Djanago tools are allowed in its calling syntax... Example from django.urls import path from MyApplication import views What I am looking for is an explanation of what things can be imported with URLS

Re: urls 1.11 use task how to use 3.0.6 version

2020-06-15 Thread Kelvin Sajere
You can now easily write your URL patterns like this. from django.urls import path urlpatterns = [ path("", someview, name="somename") ] On Mon, Jun 15, 2020 at 5:52 PM Kayode Oladipo wrote: > Use the path( ) method. > > from django.urls import path > > path('',...) > > On Mon, Jun 15, 20

Re: urls 1.11 use task how to use 3.0.6 version

2020-06-15 Thread Kayode Oladipo
Use the path( ) method. from django.urls import path path('',...) On Mon, Jun 15, 2020, 2:21 PM Adya Mit wrote: > (?P\d+)/$ django > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emai

urls 1.11 use task how to use 3.0.6 version

2020-06-15 Thread Adya Mit
(?P\d+)/$ django -- 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 view this discussion on the web visit https://gr

Re: Issue with passing parameters in urls

2020-04-01 Thread aniket kamthe
from the database > - > > HTML File code - > > {% for thread in object %} > role="button">{{ thread.name }} Something {% endfor > %} > > URLs files code - > > path('message//', views.message, name='message'), > > Views files

Re: Issue with passing parameters in urls

2020-04-01 Thread Antje Kazimiers
gt; that in the next link to access a specific set of entries from the > database -  > > HTML File code -  > > {% for thread in object %} > role="button">{{ thread.name }} Something {% endfor %} > URLs files code -  > path('message//', views.me

Issue with passing parameters in urls

2020-03-30 Thread aniket kamthe
- {% for thread in object %} {{ thread.name }} Something {% endfor %} URLs files code - path('message//', views.message, name='message'), Views files code def message(request, threadid): if request.method == 'POST': print(request.POST.get('

Re: understanding urls, forms, and HTTP ERROR 405

2020-02-21 Thread onlinejudge95
On Fri, Feb 21, 2020 at 2:24 AM Phil Kauffman wrote: > So something like this? > Yes if you are using method based views. You can still do the same using class-based views by referring to the following https://stackoverflow.com/questions/15622354/django-listview-with-post-method > def site(requ

Re: understanding urls, forms, and HTTP ERROR 405

2020-02-20 Thread Phil Kauffman
So something like this? def site(request, site_id): site = get_object_or_404(Site.name, pk=site_id) def sitesubmit(request): #site=get_object_or_404(Site, pk=site_id) form = SelectSite() if request.method == 'POST': form = SelectSite(request.POST) if form.is

Re: understanding urls, forms, and HTTP ERROR 405

2020-02-20 Thread onlinejudge95
On Thu, Feb 20, 2020 at 11:38 PM Phil Kauffman wrote: > Hello, > > Newbie in need of a little shove. It seems I need to review the purpose of > the urls.py file. At present I am getting an HTTP Error 405 with the > following: > HTTP 405 error code states the the HTTP method is not allowed on the

understanding urls, forms, and HTTP ERROR 405

2020-02-20 Thread Phil Kauffman
Hello, Newbie in need of a little shove. It seems I need to review the purpose of the urls.py file. At present I am getting an HTTP Error 405 with the following: urls.py: path('', views.show_site, name = 'home'), path('site-view', views.List.as_view(), name='site-view') views.py class List(Lis

Conflicting URLs DRF

2020-02-14 Thread Malik Brahimi
Please help: https://www.reddit.com/r/django/comments/f4390j/conflicting_urls_drf/ -- 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...@goog

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

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

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: 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.

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

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

Error with urls

2019-10-24 Thread Harold Yamit Achipiz Quina
Hello everyone, I would like you to help me with this problem. I have two models Headquarters and Salon when I click on a venue {{headquarters.name}} list all the rooms that the headquarters has, when I want to edit a salon when saving the changes generates the following error: NoReverse

Re: app urls

2019-10-21 Thread Jorge Gimeno
6:47 PM Md Nayem Tushar wrote: > how to add many html file in app urls without edit project urls? pls ans me > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving e

app urls

2019-10-21 Thread Md Nayem Tushar
how to add many html file in app urls without edit project urls? pls ans me -- 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-user

Re: cannot import path in urls

2019-10-02 Thread Taylor Hughes-Scott
Hi, You will need to make the change in both urls.py files that you have created. Regards, On Thu., 3 Oct. 2019, 3:36 pm MEGA NATHAN, wrote: > Hi. > In which file i rewrite ....app/urls are main file url i write... > > > > > > *Regards* > Meganathan G > >

Re: cannot import path in urls

2019-10-02 Thread MEGA NATHAN
Hi. In which file i rewrite app/urls are main file url i write... *Regards* Meganathan G On Thu, Oct 3, 2019 at 10:21 AM Suraj Thapa FC wrote: > In urls.py > Write > from django.urls import path > > On Thu, 3 Oct, 2019, 10:02 AM MEGA NATHAN, > wrote: >

Re: cannot import path in urls

2019-10-02 Thread Sarvesh singh
In urls.py file .. First import- from django.urls import path Than use it. .. In django 2.2 On Thu, Oct 3, 2019, 10:02 AM MEGA NATHAN wrote: > Hi. > > > i'm meganathan beginer for django > > urls cannot import for path . how to reslove > > -- > You r

Re: cannot import path in urls

2019-10-02 Thread Taylor Hughes-Scott
han beginer for django > > urls cannot import for path . how to reslove > > -- > 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

Re: cannot import path in urls

2019-10-02 Thread Suraj Thapa FC
In urls.py Write from django.urls import path On Thu, 3 Oct, 2019, 10:02 AM MEGA NATHAN, wrote: > Hi. > > > i'm meganathan beginer for django > > urls cannot import for path . how to reslove > > -- > You received this message because you are subscribe

Re: Write urls without regex in DRF

2019-05-23 Thread nm
sion of DRF (3.9.x); I haven checked how the code looks in older versions. On Wednesday, 22 May 2019 17:20:20 UTC+2, Rounak Jain wrote: > > I am using DRF Viewsets to auto-generate URLs for different views. Is it > possible to write the code below without using regex? > Thanks > &g

Re: Write urls without regex in DRF

2019-05-22 Thread Rounak Jain
I cannot see any reply On Thursday, May 23, 2019 at 7:56:54 AM UTC+5:30, Kevin Jay wrote: > > kevin@kjay,net > > On Wed, May 22, 2019 at 10:19 AM Rounak Jain > wrote: > >> >> I am using DRF Viewsets to auto-generate URLs for different views. Is it >> poss

Re: Write urls without regex in DRF

2019-05-22 Thread Kevin Jay
kevin@kjay,net On Wed, May 22, 2019 at 10:19 AM Rounak Jain wrote: > > I am using DRF Viewsets to auto-generate URLs for different views. Is it > possible to write the code below without using regex? > Thanks > > from .views import TaskViewSet > from rest_framework.routers

Re: Write urls without regex in DRF

2019-05-22 Thread Rounak Jain
Thanks for the reply. I understand how to use them in urls.py when creating normal routes but here in case of drf, it would help if you could show me how to do it On Wed, May 22, 2019 at 10:11 PM Onasanya Tunde wrote: > Use Django2.X > > -- > You received this message because you are subscribed

Write urls without regex in DRF

2019-05-22 Thread Onasanya Tunde
Use Django2.X -- 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 group, send email to django-users@google

Write urls without regex in DRF

2019-05-22 Thread Rounak Jain
I am using DRF Viewsets to auto-generate URLs for different views. Is it possible to write the code below without using regex? Thanks from .views import TaskViewSet from rest_framework.routers import DefaultRouter router = DefaultRouter() router.register(r'', TaskViewSet, base

About query strings in urls

2019-05-04 Thread Surajeet Das
I am actually developing an android app which will fetch data using an api . I am trying to pass multiple parameters in the url using query strings, but I am not able concatenate those parameters in the url. eg: U/userapi/?email=abc&pass=bcd I trying to achieve the above example. How do I take

Re: Django URLs

2019-04-28 Thread Anirudh Jain
What is the function 'detail' ? You need to assign 'slug' variable also in order to pass it to the url. On Sun, 28 Apr 2019, 13:50 Aayush Bhattarai, wrote: > Hello Everyone, > > I want to pass two url in url of template. I have added in urls.py also. > > code:- > Index.html > *http://detail.id>

Django URLs

2019-04-28 Thread Aayush Bhattarai
Hello Everyone, I want to pass two url in url of template. I have added in urls.py also. code:- Index.html ** *In Up I want to pass slug. What Should I do.* *urls.py:* *path("detail//"),* *Thanks For Help* -- You received this message because you are subscribed to the Google Groups "Django

Re: urls con clases

2019-02-19 Thread Victor H. Velasquez Rizo
Hola Abel. Que exactamente en lo que estas teniendo problemas para configurar? On Tue, Feb 19, 2019 at 11:21 AM Abel Sena wrote: > no puedo configuralo > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and

Re: urls con clases

2019-02-19 Thread carlos
Django LTS url(r'^$', IndexView.as_view(), name='index'), IndexView es tu clase que esta en views.py Django 2.x path('', IndexView.as_view(), name='index'), On Tue, Feb 19, 2019 at 11:21 AM Abel Sena wrote: > no puedo configuralo > > -- > You received this message because you are subscribed to

urls con clases

2019-02-19 Thread Abel Sena
no puedo configuralo -- 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 group, send email to django-users

[ANN] django-service-urls 1.1.0

2019-01-19 Thread Raffaele Salmaso
I'm happy to announce the 1.1.0 release of django-service-urls package, an evolution of dj-database-url which can handle CACHES and EMAIL_BACKEND setting other than DATABASES. *News* Simplified installation: instead of modifying the setting file (possibility that is always available) jus

[ANN] django-service-urls 1.0.1

2018-12-23 Thread Raffaele Salmaso
I'm happy to announce the release of django-service-urls package, an evolution of dj-database-url which can handle CACHES and EMAIL_BACKEND setting other than DATABASES. *Urls* pypi and docs: https://pypi.org/project/django-service-urls/ main repo (bitbucket): https://bitbucket.org/rsa

Re: Urls in Django model for dynamic template loading

2018-10-19 Thread Joel
which is your error? The one with "unable to load files.js? If so, check your template. Probably available static files path issue. On Fri, 19 Oct, 2018, 5:29 PM Tosin Ayoola, wrote: > got little project on the project, i'm working on, can't seems > to able to save my form to databa

Urls in Django model for dynamic template loading

2018-10-19 Thread Akash Purandare
I am creating a website in django and I was wondering how I can add a url to Django Model and then retrieve that url to provide to the {% url 'url_in_db'%} in the templates. If not, can anyone give me any other suggestions to achieve this? -- You received this message because you are subscribe

Re: Creating urls

2018-09-19 Thread Mateusz
linic'), # for example.com/ where "something" part is gonna be searched in /clinic/urls.py path('', include('doctors.urls'), namespace='doctor'), # for example.com/ where "something" part is gonna be searched in /doctors/urls.py ] *WA

Creating urls

2018-09-17 Thread Joel Mathew
I have a project named myappointments, which has two apps, clinic and appointments. As of now, I am using the following urls in clinic.urls: path('newclinic', views.newclinic, name="newclinic"), path('/', views.clinic_home, name="clinic_home"), path('

Re: A questionale developer had added exraneous code to image URLS that used to work. I would be gratefuldor your assitamce please?

2018-09-09 Thread Vijay Khemlani
If you're using django-storages with S3 as the media backend then there is a setting called AWS_S3_FILE_OVERWRITE that prevents files with the same name form being uploaded. In those cases the library appends a suffix similar to your example. Usually this is useful to prevent files from being over

Re: A questionale developer had added exraneous code to image URLS that used to work. I would be gratefuldor your assitamce please?

2018-09-09 Thread mottaz hejaze
please share code .. Is this image from admin panel or from website front .. please share models.py , admin.py , views.py and forms.py On Mon, Sep 10, 2018 at 12:47 AM KarmaFish wrote: > Hello we had no issues uploaded images to our servers pointing toa n > image name. > But this Dev came

A questionale developer had added exraneous code to image URLS that used to work. I would be gratefuldor your assitamce please?

2018-09-09 Thread KarmaFish
Hello we had no issues uploaded images to our servers pointing toa n image name. But this Dev came in and changed the code. Whenever we upload a new image for a product, after save , we'd go back to find that the image name had an automatically generated code added to the jpg filename making th

Re: Help with mi first hello world please problems with urls

2018-08-30 Thread Sonali Vighne
sos de la documentacion > para crear una primera aplicacion consegui instalr django y craer con > startproject un projecti inicial sin problemas, mi primer problema se > presenta cuando configuro las urls al crear con el $python manage.py > startapp polls dichos archivos sigo los pa

Re: Help with mi first hello world please problems with urls

2018-08-29 Thread ireoluwa fakeye
jango y craer con >> startproject un projecti inicial sin problemas, mi primer problema se >> presenta cuando configuro las urls al crear con el $python manage.py >> startapp polls dichos archivos sigo los pasos hasta donde en el archivo >> polls/views.py se incrusta el siguient

Re: Help with mi first hello world please problems with urls

2018-08-29 Thread Anirudh choudhary
y django estaba siguiendo los pasos de la documentacion > para crear una primera aplicacion consegui instalr django y craer con > startproject un projecti inicial sin problemas, mi primer problema se > presenta cuando configuro las urls al crear con el $python manage.py > startapp polls

Re: smart_urlquote fails with some URLs - is this unfixable?

2018-08-24 Thread Mike Dewhirst
rs = {'href': smart_url}     html = format_html(     '{} {}{} {}',     'Click here:', flatatt(final_attrs), value,     '', html     )     return html This works nicely with most URLs but I have found one which barfs working url with smart_urlquote d

  1   2   3   4   5   6   7   8   9   10   >