Gil
Can u pls clearly let me know the approach
First, how do you talk with finger print machine? It Has got an api? I understant autonomus fingerprint machine.
If yes, modelize data with django models, and then create functs or views
Anonymous
Игорь
Help me
Игорь
My variable named new_tag, but django can’t see it
cj
Moe (محمد)
To do*
Mirco
a context variable related to a migration ?
I bet instead he made mistakes into the view that renders the template
Moe (محمد)
Moe (محمد)
😅
Moe (محمد)
Is caching API response in a session a good idea?
Moe (محمد)
ändrew
guys, I have a model that implements Recipe which have "ForeignKey"s that are Ingredients and Steps (to prepare)
I want to able to add them (potentially infinite amount) to each recipe
ändrew
by default it looks something like (empty dropdown menus)
Ingredients:
-----
Steps:
-----
Anonymous
Anonymous
😁
Anonymous
Hi i havk packag about all information about django who have this package?
ändrew
Anonymous
What
Damron
Hi everyone!
Can you please tell me how to implement user-action-logging system?
Damron
I know a little about builtin logger in Django and also have read about libraties, user-history, user-action
But I haven't found real implementation in projects
Maybe you used smth like this?
Anonymous
Hello i have a login template i designed earlier
How do I relate it to Django login?
Berat
Hey guys, I need some advice about task scheduler. I'm looking for a scheduler that users will set their times for running task every day. What's the best suitable module for it?
Bruce Wayne
How can i add charts to django admin ??
Bruce Wayne
Need a fully customised version of Django-admin 😬
George
Bruce Wayne
Jet -admin theme
LORD
How can i run other scripts in Django?
LORD
Means i want to run numpy maded script on browser
Harish
If anyone needs Durga sir lecturer video's (python,django, restapi) dm me
Shivam
hey,
I want to use webcam on django website and can't get any better way to it.
alex
Greetings everyone, please help solve the issue:
1. can't get to the home page http://127.0.0.1:8000/ that has been set in flatpage
2. but the homepage is accessible by http://127.0.0.1:8000// - double slash
3. how to make it work on one slash?
urls.py
urlpatterns = [
path('admin/', admin.site.urls),
]
urlpatterns += [
path('<path:url>', views.flatpage),
]
alex
took all that code completely from this link
alex
https://docs.djangoproject.com/en/3.0/ref/contrib/flatpages/#using-the-urlconf
himay
Automatic using jQuery and ajex
Gil
alex
"-show views.flatpage "
looking for how to paste screenshot here
"-this url.py is from app or from project?"
yes, it is
alex
didn't get your first question - now got it, it's a standard django app 'django.contrib.flatpages',
Anonymous
I try to install it in my project but I can't it is for python 3 and Django 3?
And it good for large projects?
alex
alex
here is the views.flatpage
alex
red it before, the question is how to make it work on http://127.0.0.1:8000/
alex
with one slash
alex
I've found that in previous version that issue was solved by adding slash: url(r'^(?P<url>.*/)$', views.flatpage),
urlpatterns += patterns('django.contrib.flatpages.views', url(r'^(?P<url>.*)$', 'flatpage'),)
alex
but how to make it with <path:url> variable
Gil
OKyes,
I think if you put a varible : <path:url> django doesnt support, he's waiting for anything.
I don't know if it works with regex, as you say. But I don't like this solution.
I don't know if its the best solution, but f before this url patterern,you put another without nothing, you can play with / for example:
urlpattern = [ path('', view.withnoting), path('<path:url>', view.other)]
If you have problems with de function, for url parameter, you can pass as url=None, and you can use the same function for the two path.
hope it to be useful
😒😒
Sunil G
Hi all,
May I know how to use datepicker in crispy forms?
Shokhrukh
hi,
how can be solved next one
Access to XMLHttpRequest at 'https://site/' from origin 'https://site2' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Anonymous
Shokhrukh
I already added ''corsheaders.middleware.CorsMiddleware', and also while list too but there is no changes still
Anonymous
urllib.error.HTTPError: HTTP Error 403: SSL is required
i am facing this error can anybody guide me how resolve this
Anonymous
urllib.error.HTTPError: HTTP Error 403: SSL is required
Hari
How to set only one value in models
Hari
I dont want choices in charfield
Hari
Value
Muflone
Please explain what you want to obtain
Hari
Okay
Hari
I have field in models.charfield( max_length=32 choices=((a,a)(b,b)) default=b)
Hari
In this field i want save only a as always and show choices limit only a
Muflone
Remove b from choices
Hari
But choices require two and it must be iterable
Hari
Hari
Ok
Hari
Hari
Is there any way to set field and must have same char always
Andrew
where exactly do you get an error "choices must be an iterable containing"?