Re: Django version 4.2.5 not path in Windows 10

2023-09-20 Thread Agbeniga Ambali
Follow this link and you will be happy. https://www.youtube.com/watch?v=16i-Gc1Ecuc On Wed, Sep 20, 2023 at 1:38 PM Agbeniga Ambali wrote: > What's the issue you are having after following my suggested solution? > Did you restart after you were done?, Were you able to see the path >

Re: Django version 4.2.5 not path in Windows 10

2023-09-20 Thread Agbeniga Ambali
What's the issue you are having after following my suggested solution? Did you restart after you were done?, Were you able to see the path specified? If you follow the instruction very well, it should work appropriately. On Tue, Sep 19, 2023 at 11:14 PM Agbeniga Ambali wrote: > If you h

Re: Django version 4.2.5 not path in Windows 10

2023-09-19 Thread Agbeniga Ambali
If you have not solved it, I believe this will work. 1. Verify Django Installation: First, make sure that Django is correctly installed on your system. You can do this by opening a command prompt and running the following command: python -m django --version 2. Add Django to the PATH: To access

Django version 4.2.5 not path in Windows 10

2023-09-17 Thread Mehran Aliyari
Hello Sorry, Django version 4.2.5 is installed in Windows 10, but the path is not available. How can I fix this, please help me. I just started, but I still haven't passed the path stage, please help me -- You received this message because you are subscribed to the Google Groups "Django

Re: Path Not Found Error

2023-03-06 Thread John McClain
Mar 2023 at 16:00, Sunil Gyawali wrote: > Give correct path in admin > > On Sun, Mar 5, 2023, 9:29 PM Rachit Singh wrote: > >> Hi All, >> >> I am learning Django for the first time and getting error "Path Not >> Found" everytime I am runni

Re: Path Not Found Error

2023-03-05 Thread Sunil Gyawali
Give correct path in admin On Sun, Mar 5, 2023, 9:29 PM Rachit Singh wrote: > Hi All, > > I am learning Django for the first time and getting error "Path Not > Found" everytime I am running the command "python manage.py runserver". I > have gone thro

Path Not Found Error

2023-03-05 Thread Rachit Singh
Hi All, I am learning Django for the first time and getting error "Path Not Found" everytime I am running the command "python manage.py runserver". I have gone through many videos & articles and have tried many things but it is still not working. Can anyone help

How to 301 redirect django url with multiple slashes on url path?

2022-04-21 Thread Tanata Giventa
I am trying to figure out how to redirect properly some urls that contain multiple slashes and create a permanent 301 redirect whenever the slug changes. For example: A - https://example.org/category/subcategory/article-name-A B - https://example.org/category/subcategory/article-name-B I

Re: Django Exception "Detected path traversal attempt in" for save a model with filefield

2022-02-04 Thread Joalbert Palacios
at /admin/dummyapp/country/add/Detected path traversal attempt in '/home/joalbert/Documents/test/dummy/media/country/images/us_bP4iy1J.png' Request Method: POST Request URL: http://localhost:8000/admin/dummyapp/country/add/ Django Version: 3.2.12 Exception Type: SuspiciousFileOperation Exception

Re: Django Exception "Detected path traversal attempt in" for save a model with filefield

2022-02-04 Thread Jacob Greene
Hmm that can't be right. Can you set a breakpoint on the line where the exception is raised: SuspiciousFileOperation("Detected. When you set a breakpoint there, inspect the value of dir_name. The ".parts" method breaks the file path up into a tuple, there shouldn't be a &q

Re: Django Exception "Detected path traversal attempt in" for save a model with filefield

2022-02-04 Thread Joalbert Palacios
n(BASE_DIR, 'media') where BASE_DIR = Path(__file__).resolve().parent.parent If you could tell me how could fix it, it would be nice. Since I do not have idea how to remove this exception. Sincerely, Joalbert On Friday, February 4, 2022 at 12:33:51 AM UTC-5 jacobgr...@gmail.com wrote: > This is o

Re: Django Exception "Detected path traversal attempt in" for save a model with filefield

2022-02-03 Thread Jacob Greene
This is obviously some type of security feature to prevent someone from climbing up a directory. You have ".." in your string for the file path somewhere. What is the value of "dir_name" when the exception is raised? It should be in the traceback somewhere. Should help na

Django Exception "Detected path traversal attempt in" for save a model with filefield

2022-02-03 Thread Joalbert Palacios
Hi group, I have been updating my django version so as to cover the last security patch with django version 3.2 (current version 3.2.12). Unfortunately, after this update the following exception occurs during execution of testing: Detected path traversal attempt in '/home/joalbert/Documents

Issue with django.forms.fields.FilePathField() and callable path

2021-11-02 Thread Chakib Benhabib
Hi, First post here, so I don't know if it's the correct channel for this kind of issue. Sorry if it's not. Since v 3.0 we can set path attribute as a callable in a models.fields.FilePathField(), as discussed here: https://code.djangoproject.com/ticket/29529 and documented here: https

Re: Re: Path in First App, Part 3

2020-10-23 Thread rbar...@xcaretresearch.com
that I add "detail" to the urls.py code at path(' question.id>/", view detail, name="detail" > But that ruins everything. > > On Friday, October 23, 2020 at 2:32:19 PM UTC-7 rbar...@xcaretresearch.com > wrote: > >> My guess is that the index url is sup

Re: Re: Path in First App, Part 3

2020-10-23 Thread rbar...@xcaretresearch.com
Someone suggest that I add "detail" to the urls.py code at path('/", view detail, name="detail" But that ruins everything. On Friday, October 23, 2020 at 2:32:19 PM UTC-7 rbar...@xcaretresearch.com wrote: > My guess is that the index url is supposed to return &quo

Re: Re: Path in First App, Part 3

2020-10-23 Thread rbar...@xcaretresearch.com
On Wednesday, October 21, 2020 at 1:04:26 PM UTC-7 Kasper Laudrup wrote: >> >>> Actually, I tried "votes" one more time and it did work. >>> >>> On 10/21/20 12:02 PM, Kasper Laudrup wrote: >>> > Hi rbar, >>> > >>> > On

Re: Re: Path in First App, Part 3

2020-10-23 Thread rbar...@xcaretresearch.com
Laudrup wrote: > >> Actually, I tried "votes" one more time and it did work. >> >> On 10/21/20 12:02 PM, Kasper Laudrup wrote: >> > Hi rbar, >> > >> > On 21/10/2020 20.34, rbar...@xcaretresearch.com wrote: >> >> The error mes

Re: Re: Path in First App, Part 3

2020-10-23 Thread rbar...@xcaretresearch.com
gt; > On 21/10/2020 20.34, rbar...@xcaretresearch.com wrote: > >> The error message shows that there is a match. What am I doing wrong? > > > > No, the error message shows you that there *isn't* a match: > > > >> > >> The current path, polls/3/detail

Fwd: Re: Path in First App, Part 3

2020-10-21 Thread Kasper Laudrup
ere *isn't* a match: The current path, polls/3/detail, didn't match any of these. Maybe change: path('/', views.detail, name='detail'), to: path('/detail', views.detail, name='detail'), The error message is quite clear and helpful, you probably just didn't read it correctly. No worries, that

Fwd: Re: Path in First App, Part 3

2020-10-21 Thread Kasper Laudrup
By the way, look at the tutorial and you will see that it is not written the way you suggest for "path"/",views.detail, name='detail') The polls index page for a particular questioon_id refers to 'detail.' Another interesting thing is that I just tried all three pages.

Re: Path in First App, Part 3

2020-10-21 Thread Kasper Laudrup
misinterpreted what I wrote. My code is exactly what is shown in the tutorial.  What I meant by the error message displaying that there are matches, is that the detail in the message shows the exact path to each of the pages (views).  It shows the path exactly as it should be and exactly

Re: Path in First App, Part 3

2020-10-21 Thread Kasper Laudrup
Hi rbar, On 21/10/2020 20.34, rbar...@xcaretresearch.com wrote: The error message shows that there is a match.  What am I doing wrong? No, the error message shows you that there *isn't* a match: The current path, polls/3/detail, didn't match any of these. Maybe change: path

Path in First App, Part 3

2020-10-21 Thread rbar...@xcaretresearch.com
I can get to .localhost:8000/polls. but not /polls/detail ror /votes or /results. Here is my code: ``` from django.urls import path from django.contrib import admin from . import views urlpatterns = [ #es: /polls/ path('', views.index, name='index'), # ex: /polls/5 path('/', views.detail, name

Re: makemessages - unable to find a locale path

2020-06-27 Thread AMJAD ALI SAMTIO
, >> >> you need to set LOCALE_PATHS in the settings file point to your new >> folder. >> For example, >> >> LOCALE_PATHS = [os.path.join(BASE_DIR, 'new_locale')] >> >> >> On Fri, Jun 12, 2020 at 3:08 PM Kai Kobschätzki < >> kai.kobschae

Path parameters and security scanners best practice

2020-06-15 Thread Dan Davis
I have an odd question. When I have a path parameter that is validated to be alphanumeric, and a security scanner sends a non-alphanumeric value, Django properly validates and then returns 404. However, this gives the security scanner the mistaken impression that there is some some sort

Re: makemessages - unable to find a locale path

2020-06-12 Thread Aldian Fazrihady
gt;> folder. >> For example, >> >> LOCALE_PATHS = [os.path.join(BASE_DIR, 'new_locale')] >> >> >> On Fri, Jun 12, 2020 at 3:08 PM Kai Kobschätzki < >> kai.kobschaet...@gmail.com> wrote: >> >>> Hi all, >>> >>> I have some

Re: makemessages - unable to find a locale path

2020-06-12 Thread Kai Kobschätzki
chaet...@gmail.com>> >> wrote: >> >> Hi all, >> >> I have some *.po files. But now I am getting the message >> error „Unable >> to find a locale path to store translations for file $directory“. >> >> All

Re: makemessages - unable to find a locale path

2020-06-12 Thread Aldian Fazrihady
On Fri, Jun 12, 2020 at 3:08 PM Kai Kobschätzki < > kai.kobschaet...@gmail.com> wrote: > >> Hi all, >> >> I have some *.po files. But now I am getting the message error „Unable >> to find a locale path to store translations for file $directory“. >> >> All I

Re: makemessages - unable to find a locale path

2020-06-12 Thread Kai Kobschätzki
gt; For example, > LOCALE_PATHS = [os.path.join(BASE_DIR, 'new_locale')] > > On Fri, Jun 12, 2020 at 3:08 PM Kai Kobschätzki > mailto:kai.kobschaet...@gmail.com>> wrote: > > Hi all, > > I have some *.po files. But now I am getting the message error „Unable >

Re: makemessages - unable to find a locale path

2020-06-12 Thread Aldian Fazrihady
r „Unable > to find a locale path to store translations for file $directory“. > > All I find with google is that I have to create a subdirectory locale in > the $directory. But I removed the $directory, so I can't or I do not > want to recreate the origina directory... > > Do an

makemessages - unable to find a locale path

2020-06-12 Thread Kai Kobschätzki
Hi all, I have some *.po files. But now I am getting the message error „Unable to find a locale path to store translations for file $directory“. All I find with google is that I have to create a subdirectory locale in the $directory. But I removed the $directory, so I can't or I do not want

Re: How to get a full path of web page to my views.py?

2020-06-09 Thread Sergei Sokov
; On Tue, Jun 9, 2020, 6:41 PM Sergei Sokov > > wrote: > >> I would like to use a current url path in my views.py >> >> понедельник, 8 июня 2020 г., 14:25:25 UTC+2 пользователь Rupesh Dahal >> написал: >>> >>> Can you please elaborate your proble

Re: How to get a full path of web page to my views.py?

2020-06-09 Thread Chetan Ganji
https://docs.djangoproject.com/en/3.0/ref/request-response/ <https://docs.djangoproject.com/en/3.0/ref/request-response/#:~:text=Quick%20overview,argument%20to%20the%20view%20function> On Tue, Jun 9, 2020, 6:41 PM Sergei Sokov wrote: > I would like to use a current url path in my

Re: How to get a full path of web page to my views.py?

2020-06-09 Thread Sergei Sokov
I would like to use a current url path in my views.py понедельник, 8 июня 2020 г., 14:25:25 UTC+2 пользователь Rupesh Dahal написал: > > Can you please elaborate your problem. > > On Monday, June 8, 2020 at 12:26:12 AM UTC+5:45, Sergei Sokov wrote: >> >> I have the path

Re: How to get a full path of web page to my views.py?

2020-06-08 Thread Rupesh Dahal
Can you please elaborate your problem. On Monday, June 8, 2020 at 12:26:12 AM UTC+5:45, Sergei Sokov wrote: > > I have the path in the web browser like this > > http://192.168.0.178:8000/customers-orders/37/customers-orders-date/?datefilter=06%2F14%2F2020+-+06%2F26%2F2020 > > Ho

How to get a full path of web page to my views.py?

2020-06-07 Thread Sergei Sokov
I have the path in the web browser like this http://192.168.0.178:8000/customers-orders/37/customers-orders-date/?datefilter=06%2F14%2F2020+-+06%2F26%2F2020 How to get this path to my views.py for to work with it? -- You received this message because you are subscribed to the Google Groups

Re: The empty path didn't match

2020-04-11 Thread Vinay Kumar
ethod: GET >> Request URL: http://127.0.0.1:8000/ >> >> Using the URLconf defined in durganewsproject.urls, Django tried these >> URL patterns, in this order: >> >>1. admin/ >>2. $/ >> >> The empty path didn't match any of these. >> >> I

Re: The empty path didn't match

2020-04-11 Thread waqar khan
) >> Request Method: GET >> Request URL: http://127.0.0.1:8000/ >> >> Using the URLconf defined in durganewsproject.urls, Django tried these >> URL patterns, in this order: >> >>1. admin/ >>2. $/ >> >> The empty path didn't matc

Re: The empty path didn't match

2020-04-09 Thread JEGATHEESWARAN SUNDARAVADIVEL
i am getting error > > Page not found (404) > Request Method: GET > Request URL: http://127.0.0.1:8000/ > > Using the URLconf defined in durganewsproject.urls, Django tried these > URL patterns, in this order: > >1. admin/ >2. $/ > > The empty path didn't m

The empty path didn't match

2020-04-09 Thread Vinay Kumar
these URL patterns, in this order: 1. admin/ 2. $/ The empty path didn't match any of these. I have attached the screenshots of the pages.. kindly help me out with this issue , i have tried many times with different ways but getting the same error .. -- You received this message because you

drop image in div and add path to db

2020-03-12 Thread Andrew Fry
Hi all... newbie here. I have jQuery drag 'n drop working for a web app but cannot seem to figure out how to get the path of the dropped image uploaded to my db.sqlite3 database. What do I need to provide to get some help. Thanks in advance. -Andrew -- You received this message because you

Django + Webpack + Heroku. Error reading /app/webpack-stats.json. Are you sure webpack has generated the file and the path is correct?

2020-01-29 Thread Irawan Setyo Adhi Nugroho
I have the same problem. Is there any solutions? -- 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

Re: Django path, Learn Django, Django document

2020-01-15 Thread Dvs Khamele
; I make this thread to find some advice to learn the Django framework. > I've learned about basic Python and want to learn about Web app using > Python but I couldn't find the path for this. > Someone can show me the PATH, DOCUMENT to learn Django. > Many thank! > > -- > You

Re: Django path, Learn Django, Django document

2020-01-15 Thread Dvs Khamele
n but I couldn't find the path for this. > Someone can show me the PATH, DOCUMENT to learn Django. > Many thank! > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving

Re: Running polls tutorial, see the error message "The empty path didn't match any of these."

2019-12-30 Thread Jose M.
rrect. > > Dylan > > On Sat, Feb 24, 2018 at 3:09 PM, Chunjing Jia > wrote: > >> Hi, >> >> I am running Django 2.0 tutorial01 for polls. I am seeing this error >> message >> >> Using the URLconf defined in mysite.urls, Django tried these URL &g

Re: invalid syntax after setting the path to be urlspattern = [os.path.join(BASE_DIR)....

2019-12-25 Thread lImbI
I think urlpatterns = [ path("/", views.view, name=""), ] On Thu, 26 Dec 2019, 06:31 Realdox Opeyemi, wrote: > how to solve template issue which keeps saying invalid syntax even after > the path has been set...it eventually leads to template not found after > ser

invalid syntax after setting the path to be urlspattern = [os.path.join(BASE_DIR)....

2019-12-25 Thread Realdox Opeyemi
how to solve template issue which keeps saying invalid syntax even after the path has been set...it eventually leads to template not found after server was run .i'm using window 8 ,python 3.7 and vs -- You received this message because you are subscribed to the Google Groups "Django

Re: Django path, Learn Django, Django document

2019-12-21 Thread John Bagiliko
eo Dạo , wrote: >> >> Hello everyone! >> I make this thread to find some advice to learn the Django framework. >> I've learned about basic Python and want to learn about Web app using >> Python but I couldn't find the path for this. >> Someone can show me the PATH, DO

Re: Django path, Learn Django, Django document

2019-12-21 Thread ramadhan ngallen
t; > > > https://www.djangoproject.com > > > On 21 Dec 2019, 19:04 +0300, Root Video Dạo , wrote: > > > > Hello everyone! > > > > I make this thread to find some advice to learn the Django framework. > > > > I've learned about basic Python and

Re: Django path, Learn Django, Django document

2019-12-21 Thread Integr@te System
Root Video Dạo , wrote: > > Hello everyone! > I make this thread to find some advice to learn the Django framework. > I've learned about basic Python and want to learn about Web app using > Python but I couldn't find the path for this. > Someone can show me the PATH, DOCUM

Re: Django path, Learn Django, Django document

2019-12-21 Thread ramadhan ngallen
t I couldn't find the path for this. > Someone can show me the PATH, DOCUMENT to learn Django. > Many thank! > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving em

Django path, Learn Django, Django document

2019-12-21 Thread Root Video Dạo
Hello everyone! I make this thread to find some advice to learn the Django framework. I've learned about basic Python and want to learn about Web app using Python but I couldn't find the path for this. Someone can show me the PATH, DOCUMENT to learn Django. Many thank! -- You received

Re: Daphne with absolute path to ASGI file

2019-10-22 Thread wd
hi, I checked the source code for Daphne, it uses import_by_path to import application def import_by_path(path): > """ > Given a dotted/colon path, like project.module:ClassName.callable, > returns the object at the end of the path. > "&

Re: Daphne with absolute path to ASGI file

2019-10-22 Thread BR
r containing the Django project module > like so: > > daphne project.asgi:application > > How can I specify the full path to project.asgi:application? > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from t

Daphne with absolute path to ASGI file

2019-10-22 Thread BR
I've been using Daphne for months without issue, and have reorganized my project structure to make things a bit easier. However, it appears that Daphne needs to be run from the folder containing the Django project module like so: daphne project.asgi:application How can I specify the full path

Re: cannot import path in urls

2019-10-03 Thread Taylor Hughes-Scott
> > 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: >> >>> Hi. >>> >>> >>> i

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 receiv

Re: cannot import path in urls

2019-10-02 Thread Taylor Hughes-Scott
Hi, It looks like you aren't importing path from the right location in your urls.py file, try the following import to see if that resolves your issue. from django.urls import path Regards, On Thu., 3 Oct. 2019, 2:33 pm MEGA NATHAN, wrote: > Hi. > > > i'm meganathan begine

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 subscribed to

Re: images in production mode. is pointed to a different path.

2019-08-26 Thread Aldian Fazrihady
ing trouble displaying images in production mode. is > pointed to a different path. image src points to -> > https://campeonatosdejiujitsu.com/social/file.jpg and > https://campeonatosdejiujitsu.com/social/images/file.jpg the images are at: > https://campeonatosdejiujitsu.co

Re: Static files won't match the path given

2019-05-12 Thread Joe Reitman
remote server *NameCheap*. There on the server, the issue is unable > to locate the static files. Even when we directed the path to static files > folder. > > This static files, infrequently work and load the static, that's how we > concluded the static error was caused by the misdirection of th

Re: Static files won't match the path given

2019-05-11 Thread Rookies DJ
Dear Anirudh Jain Thank you for reply Really, apprentice it Yes we run collectstaitc command And we try within setting.py files Set path static_root/url as the same As for web server software we using apache not nigx. I apologize for not including this information Really appreciate

Re: Static files won't match the path given

2019-05-11 Thread Mike Dewhirst
App, and manage to upload it >to remote server NameCheap. There on the server, the issue is unable to locate >the static files. Even when we directed the path to static files folder. > >This static files, infrequently work and load the static, that's how we >concluded the static error

Re: Static files won't match the path given

2019-05-10 Thread Anirudh Jain
t; I'm only on Django for the past 5 months. (under my boss order) > > I had managed to develop and establish a Django App, and manage to upload > it to remote server *NameCheap*. There on the server, the issue is unable > to locate the static files. Even when we directed the path to sta

Static files won't match the path given

2019-05-10 Thread Rookies DJ
the static files. Even when we directed the path to static files folder. This static files, infrequently work and load the static, that's how we concluded the static error was caused by the misdirection of the path. But reading over the Django documentary multiple time didn't help resolve

error passing int values from browser to path

2019-03-20 Thread charan . j . tej
iam oassing an interger valu from browser to the path using but it is showing as an error not an intege Environment: Request Method: GET Request URL: http://localhost:8000/hello/2 Django Version: 2.1.7 Python Version: 3.7.2 Installed Applications: ['django.contrib.admin

template {% url %} tag is giving server's absolute path

2018-12-27 Thread Paul Lanza
I have recently changed my django project (using A2 hosting) from fcgi to wsgi. I have successfully gotten the project to work, but I am experiencing a minor caveat I am trying to solve. Now, when I use the {% url %} tag in the templates to form a link, I get the absolute path of the server

Re: How to send parameters to templates and adjust the page url by path?

2018-12-13 Thread Saeed Pooladzadeh
Thank you Ira در چهارشنبه 12 دسامبر 2018، ساعت 19:21:26 (UTC-8)، lingo...@gmail.com نوشته: > > Hello, > > How to send parameters to templates and adjust the page url by path? > > regards, > > Saeed > -- You received this message because you are subscribed to the G

Re: How to send parameters to templates and adjust the page url by path?

2018-12-12 Thread Ira Abbott
, **kwargs): data = super().get_context_data(*args, **kwargs) data['title'] = 'New User Signup' data['login_url'] = '/accounts/login/' return data 'adjust the page url path' could mean one of two things: - access the url path in the view (self.request.path

How to send parameters to templates and adjust the page url by path?

2018-12-12 Thread lingo . saeed
Hello, How to send parameters to templates and adjust the page url by path? regards, Saeed -- 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 dj

Re: from django.urls import include , path ImportError: cannot import name include

2018-12-05 Thread رهام صادقی
Hi, note that path is only works on django with version > 2.0 for more information about path check following link: https://docs.djangoproject.com/en/2.1/ref/urls/ ‫‪Dheeraj Kumar‬‏ <‪talk...@gmail.com‬‏> در تاریخ چهارشنبه ۵ دسامبر ۲۰۱۸ ساعت ۱۱:۳۳ نوشت:‬ > It won't work. > now

Re: from django.urls import include , path ImportError: cannot import name include

2018-12-05 Thread Dheeraj Kumar
views urlpatterns = [ url (r'^$', views.home , name = 'home'), ] On Tue, 4 Dec 2018 at 22:01, Harryxon Ndegwa wrote: > use django.urls import path instead to import path > > #%£& > > On Tue, 4 Dec 2018 7:06 pm Dheeraj Kumar >> thanks to respond me but still ha

Re: from django.urls import include , path ImportError: cannot import name include

2018-12-04 Thread Harryxon Ndegwa
use django.urls import path instead to import path #%£& On Tue, 4 Dec 2018 7:06 pm Dheeraj Kumar thanks to respond me but still having an issue. > > from django.contrib import admin > from django.conf.urls import include, path > > urlpatterns = [ > path('boadts/',

Re: from django.urls import include , path ImportError: cannot import name include

2018-12-04 Thread Dheeraj Kumar
thanks to respond me but still having an issue. from django.contrib import admin from django.conf.urls import include, path urlpatterns = [ path('boadts/', include ('boadts.urls')), path('admin/',admin.site.urls), ] File "/home/myproject/myproject/myproject/urls.py&quo

Re: from django.urls import include , path ImportError: cannot import name include

2018-12-04 Thread C. Kirby
from django.conf.urls import include you are missing conf On Tuesday, December 4, 2018 at 8:21:39 AM UTC-5, tal...@gmail.com wrote: > > plz advise... > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop

from django.urls import include , path ImportError: cannot import name include

2018-12-04 Thread talkdkg
plz advise... -- 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

Re: path('posts/(?P[0-9]+)/$'

2018-12-03 Thread ehrenfeld1946
They both worked. Thank you! On Sunday, December 2, 2018 at 6:04:04 PM UTC-8, Lachlan Musicman wrote: > > > > On Mon, 3 Dec 2018 at 11:51, > wrote: > >> >> >> On Sunday, December 2, 2018 at 10:00:17 AM UTC-8, Jani Tiainen wrote: >>> >>>

Re: path('posts/(?P[0-9]+)/$'

2018-12-03 Thread Jani Tiainen
path('posts//$') should work as well. kirjoitti ma 3. jouluk. 2018 klo 2.51: > I am new to django so I am not sure I understand what you are saying. Can > you give me a rewrite of the correct syntax of the line that is not correct? > > Thank you > > On Sunday, December 2, 2

Re: path('posts/(?P[0-9]+)/$'

2018-12-02 Thread Lachlan Musicman
On Mon, 3 Dec 2018 at 11:51, wrote: > > > On Sunday, December 2, 2018 at 10:00:17 AM UTC-8, Jani Tiainen wrote: >> >> Hi. >> >> Path is a new url format which uses format of for >> exanple like . If you want to use regular expressions use >> re_path

Re: path('posts/(?P[0-9]+)/$'

2018-12-02 Thread ehrenfeld1946
I am new to django so I am not sure I understand what you are saying. Can you give me a rewrite of the correct syntax of the line that is not correct? Thank you On Sunday, December 2, 2018 at 10:00:17 AM UTC-8, Jani Tiainen wrote: > > Hi. > > Path is a new url format which

Re: path('posts/(?P[0-9]+)/$'

2018-12-02 Thread Jani Tiainen
Hi. Path is a new url format which uses format of for exanple like . If you want to use regular expressions use re_path instead. kirjoitti su 2. jouluk. 2018 klo 19.42: > When I run http://localhost:8000/posts/2 > > I get the error: > > > Using the URLconf de

path('posts/(?P[0-9]+)/$'

2018-12-02 Thread ehrenfeld1946
When I run http://localhost:8000/posts/2 I get the error: Using the URLconf defined in blog.urls, Django tried these URL patterns, in this order: 1. admin/ 2. 3. Posts/(?P[0-9]+)/$ 4. ^media/(?P.*)$ The current path, posts/2, didn't match any

Re: No puedo instalar las librerías path y url para ejecutar python manage.py runserver

2018-11-29 Thread heriberto ochoa
Tienes instalado el compilador de c++ de microsoft para python, la falta de el puede arrojar ese error El jue., 29 de nov. de 2018 1:08 p. m., Ing.Daniel Bojorge < debs.fo...@gmail.com> escribió: > Estimado, te sugeriría que actualices la versión de Python a la más > actual. También (asumiendo

Re: No puedo instalar las librerías path y url para ejecutar python manage.py runserver

2018-11-29 Thread Ing.Daniel Bojorge
Estimado, te sugeriría que actualices la versión de Python a la más actual. También (asumiendo que c:\python34 es la ruta de instalación de python) , para iniciar un proyecto sería en otra carpeta. También trata de usar entornos virtuales. Podrías aclarar esas dudas? Dios L@s Bendiga Saludos,

No puedo instalar las librerías path y url para ejecutar python manage.py runserver

2018-11-29 Thread Franklin Guadir
Soy nuevo en este tema y tal ves mi pregunta es absurda pero este problema no me deja avanzar si ustedes me pueden ayudar quedaría inmensamente agradecido. C: \ Python34> ruta de instalación de pip Camino de recogida No se pudo encontrar una versión que satisfaga la ruta del requisito (de

Re: URL path not working with Django ver 2.1.2

2018-11-23 Thread gordon nchy
in your url u tried to make use of regularexpression sign i.e ^$ so i suggest u will have to make it a raw string in this way ( r'^$' ). gnchy On 23 Nov 2018 10:31, "Yavin Aalto Arba" wrote: > Path is not using regular expressions. Use empty quotes and it should > work. &g

Re: URL path not working with Django ver 2.1.2

2018-11-23 Thread Ben Hamlitsch
Excellent thank you very much for your help. Ben Hamlitsch > On Nov 23, 2018, at 2:20 AM, Jani Tiainen wrote: > > Hi, > > And if you want to still use old regular expressions you can use "re_path" > instead of "path". > >> On Fr

Re: URL path not working with Django ver 2.1.2

2018-11-23 Thread Jani Tiainen
Hi, And if you want to still use old regular expressions you can use "re_path" instead of "path". On Fri, Nov 23, 2018 at 5:28 AM Ben Hamlitsch wrote: > This is the message I get when I run python manage.py runserver > > [image: Screen Shot 2018-11-22 at 7.18.58 P

Re: URL path not working with Django ver 2.1.2

2018-11-22 Thread Yavin Aalto Arba
Path is not using regular expressions. Use empty quotes and it should work. On Fri, Nov 23, 2018, 5:28 AM Ben Hamlitsch This is the message I get when I run python manage.py runserver > > [image: Screen Shot 2018-11-22 at 7.18.58 PM.png] > > > This is my setup in Atom > >

URL path not working with Django ver 2.1.2

2018-11-22 Thread Ben Hamlitsch
This is the message I get when I run python manage.py runserver [image: Screen Shot 2018-11-22 at 7.18.58 PM.png] This is my setup in Atom [image: Screen Shot 2018-11-22 at 7.22.10 PM.png] ANY help you can provide much appreciated. -- You received this message because you are subscribed

Re: path('/',views.polls_details,name="polls_details") TypeError: list indices must be integers or slices, not tuple

2018-10-11 Thread Daniel Hepper
Happens to the best of us :) Glad I could help! - Daniel On Thu, Oct 11, 2018 at 11:54 AM tribhuvan kishor < tribhuvankishor...@gmail.com> wrote: > thanks man ... i was doing school boy error . thanks for shaving my day :) > > On Thu, Oct 11, 2018 at 3:20 PM Daniel Hepper > wrote: > >> You

Re: path('/',views.polls_details,name="polls_details") TypeError: list indices must be integers or slices, not tuple

2018-10-11 Thread tribhuvan kishor
thanks man ... i was doing school boy error . thanks for shaving my day :) On Thu, Oct 11, 2018 at 3:20 PM Daniel Hepper wrote: > You are missing a =. It should be: > > urlpatterns = [ > ... > ] > > instead of: > > urlpatterns[ > ... > ] > > On Thu, Oct 11, 2018 at 11:42 AM tribhuvan kishor < >

Re: path('/',views.polls_details,name="polls_details") TypeError: list indices must be integers or slices, not tuple

2018-10-11 Thread Daniel Hepper
You are missing a =. It should be: urlpatterns = [ ... ] instead of: urlpatterns[ ... ] On Thu, Oct 11, 2018 at 11:42 AM tribhuvan kishor < tribhuvankishor...@gmail.com> wrote: > please help me I am searching about this error throw out DAY . > > -- > regards > Tribhuvan Kishor Bhaskar > > --

Re: help with learning path

2018-07-05 Thread Melvyn Sopacua
'm having is > finding a learning resource somewhere between intermediate and > professional. I find that the intermediate path in any programming language is doing things yourself and getting experience. Learn to recognize how certain bugs manifest, how to setup a project and how to writing librari

Re: help with learning path

2018-07-05 Thread Tim Vogt (Tim Vogt)
wlink/?LinkId=550986> for Windows 10 > > From: backintow...@gmail.com <mailto:backintow...@gmail.com> > Sent: Thursday, July 5, 2018 10:12 AM > To: Django users <mailto:django-users@googlegroups.com> > Subject: help with learning path > > Hi everyone, >

RE: help with learning path

2018-07-05 Thread Tin Le
Yes, I have the same question as well. If some experts know where is the lead, please share with us all. Thanks Sent from Mail for Windows 10 From: backintow...@gmail.com Sent: Thursday, July 5, 2018 10:12 AM To: Django users Subject: help with learning path Hi everyone, I have been learning

help with learning path

2018-07-05 Thread backintowork
Hi everyone, I have been learning python and Django for the past 12 months, however, I seem to be stuck with moving forward. I have completed basic tutorials, read beginner and some intermediate books. The problem I'm having is finding a learning resource somewhere between intermediate and

Re: Please correct my aws s3 path for image loading in Django 2.0.6!

2018-06-18 Thread prateek gupta
Thanks Jason, this was the exact issue and now I am able to fix this by using below loc- s3_key_name = posixpath.join(settings.MEDIA_FILES_LOCATION, 'logos', logo_name) On Monday, June 18, 2018 at 5:04:24 PM UTC+5:30, Jason wrote: > > I think the issue is s3_key_name > > S3 is *not* a file

  1   2   3   4   5   6   7   8   >