Mr
Give me the file name
𝚂 𝙷 𝙰 𝙼 𝙼 𝙰 𝚂
avodhashop/media/product/apple.jpeg
𝚂 𝙷 𝙰 𝙼 𝙼 𝙰 𝚂
all of my projects and apps are inside avodhashop
Mr
avodhashop/media/product/apple.jpeg
Seen it, a picture of green apples
𝚂 𝙷 𝙰 𝙼 𝙼 𝙰 𝚂
now i am not able to go to admin panel
𝚂 𝙷 𝙰 𝙼 𝙼 𝙰 𝚂
Page not found (404) No categ matches the given query. Request Method: GET Request URL: https://iamshammas.pythonanywhere.com/admin Raised by: shop.views.home Using the URLconf defined in avodhashop.urls, Django tried these URL patterns, in this order: [name='hm'] <slug:c_slug>/<slug:product_slug> [name='details'] <slug:c_slug> [name='prod_cat'] The current path, admin, matched the last one.
Mr
all of my projects and apps are inside avodhashop
{% get_media_prefix %}product/apple.jpeg
Mr
{% get_media_prefix %}product/apple.jpeg
Use this in the html to get the image
𝚂 𝙷 𝙰 𝙼 𝙼 𝙰 𝚂
{% get_media_prefix %}product/apple.jpeg
{% for i in pr %} <li class="one_third"> <figure><a class="imgover" href="{{i.get_url}}"><img src="{{i.img.url}}" alt="" style="height: 220px;width: 300px"></a> <figcaption> <h6 class="heading">{{i.name}}</h6> <p>{{i.desc|truncatechars:17}}</p><br> <p>Price: {{i.price}} Rs</p><br> <p>Stocks Left: {{i.stock}}</p> </figcaption> </figure> </li> {% endfor %}
𝚂 𝙷 𝙰 𝙼 𝙼 𝙰 𝚂
it was working perfectly until i did thinhgs to cart page
𝚂 𝙷 𝙰 𝙼 𝙼 𝙰 𝚂
You have removed the admin url
urlpatterns = [ path('',include('shop.urls')), path('admin/', admin.site.urls), path('cart/',include('cart.urls')),
𝚂 𝙷 𝙰 𝙼 𝙼 𝙰 𝚂
Mr
i used for loop to show
Then ignore this
𝚂 𝙷 𝙰 𝙼 𝙼 𝙰 𝚂
𝚂 𝙷 𝙰 𝙼 𝙼 𝙰 𝚂
Mr
where
path('' ",include('shop.urls')),
𝚂 𝙷 𝙰 𝙼 𝙼 𝙰 𝚂
Mr
i thought 2 single quote is ok
That's single quotes ?
𝚂 𝙷 𝙰 𝙼 𝙼 𝙰 𝚂
Mr
i was using this before, i should change like that, right?
https://iamshammas.pythonanywhere.com/admin/
𝚂 𝙷 𝙰 𝙼 𝙼 𝙰 𝚂
Mr
yes
Has it work
𝚂 𝙷 𝙰 𝙼 𝙼 𝙰 𝚂
yes
𝚂 𝙷 𝙰 𝙼 𝙼 𝙰 𝚂
but different interface
Mr
but different interface
You have to include the the css and js
𝚂 𝙷 𝙰 𝙼 𝙼 𝙰 𝚂
You have to include the the css and js
i didnt created the admin panel
Mr
i didnt created the admin panel
I know, but when you upload your code on pythonanywhere.com most times the admin pannel css and js get deleted
𝚂 𝙷 𝙰 𝙼 𝙼 𝙰 𝚂
ooh
Mr
ooh
To get it, you will have to upload it
𝚂 𝙷 𝙰 𝙼 𝙼 𝙰 𝚂
To get it, you will have to upload it
but it was not in my folder anything related to admin
Mr
but it was not in my folder anything related to admin
Then you need to create another account on pythonanywhere.com then download the css an js files from there then upload it to yours
𝚂 𝙷 𝙰 𝙼 𝙼 𝙰 𝚂
now add to cart not working
Mr
now add to cart not working
What error are you getting
𝚂 𝙷 𝙰 𝙼 𝙼 𝙰 𝚂
TypeError at /cart/cartDetails/ __str__ returned non-string (type products) Request Method: GET Request URL: https://iamshammas.pythonanywhere.com/cart/cartDetails/ Django Version: 4.0.6 Exception Type: TypeError Exception Value: __str__ returned non-string (type products)
𝚂 𝙷 𝙰 𝙼 𝙼 𝙰 𝚂
𝚂 𝙷 𝙰 𝙼 𝙼 𝙰 𝚂
thanku soo much maahn
𝚂 𝙷 𝙰 𝙼 𝙼 𝙰 𝚂
{% for i in ct %} <a href={{i.get_url}}>{{i.name}}</a> {% endfor %}
𝚂 𝙷 𝙰 𝙼 𝙼 𝙰 𝚂
is it correct? this is not working?
𝚂 𝙷 𝙰 𝙼 𝙼 𝙰 𝚂
i was doing for loop to show categories
KartiK
Hey, has anybody used microservices here with django and some other backend like golang or spring boot to communicate, can u guide me is it feasible to even do that and how can we do it, is there any resource so I can look it up
Hamzat
Hello, I created a contact me page in django, I am trying to send email from the form to my email After all configuration, I get this error message Error: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond Please can someone help
Droid
Why don't u set up a emailing client maybe SMTP or pop or IMAP then collect form data and send it to your email
Droid
U can use also Gmail or yahoo
Lina
Is there anyone who knows how to solve the cors err in next+django?
Charly
Is there anyone who knows how to solve the cors err in next+django?
Lots of tutorials about that on Google, what have you tried?
Lina
Lots of tutorials about that on Google, what have you tried?
https://stackoverflow.com/questions/69611485/react-to-django-cors-issue
Prapti
File "/home/prapti/Desktop/openwisp/venv/lib/python3.10/site-packages/django/db/models/fields/related_descriptors.py", line 246, in get raise self.RelatedObjectDoesNotExist( openwisp_controller.subnet_division.models.SubnetDivisionRule.master_subnet.RelatedObjectDoesNotExist: SubnetDivisionRule has no master_subnet. can somebody help me with this error? one of my test is failing. code : https://paste.fosscu.org/paste/A3t4.py
Lina
And what's the issues with that?
ty for ur time for me Solve it
Юрий
Hi everyone. Has anyone tried implementing the Froala text editor into a Django project? I don't really understand how to add some text formatting options
Kirill
Hello. How can I realize registration with e-mail verification? Guides from the Internet don't help me. I use Django 5.0.1 Please, help 🙏
Minhaj
Yes
Okay sure I will share my github repository link with you... Just give me sometime
Minhaj
Yes
Minhajshaikh321/Email-Integration-Django https://github.com/Minhajshaikh321/Email-Integration-Django
Minhaj
Minhaj
Minhajshaikh321/Email-Integration-Django https://github.com/Minhajshaikh321/Email-Integration-Django
Check setting.py in form folder in which you have to configure with ur email(count as host user) and first set a one time password which will use as a host password
Kirill
Thank you 😊
Minhaj
Faiz
I have issue with my home page.even after logout home page and when we hit back its rendering home page without authentication. I have already used decorator of cache control its not working. Pls help to fix this issue
Devesh
On local server, everything is working fine, but when hosted on cloud there's issue in csrf token Can anyone solve
Vinay
Hello, I am having a task execution problem in celery. I am using chain from celery to execute three function together like task_chain = chain(processApkTask.s(apk_file_instance.id), decompilerApkTask.s(apk_file_instance.id),app_scan.s(apk_file_instance.id)) This task_chain will run in the background which will take like 1 minute to get fully executed but this task is getting received by celery but it is not getting finished. Can anyone please help