Frank Florentino 🇵🇪
Instead of host, do it in the container
Ive read dong work container .
Frank Florentino 🇵🇪
Dont*
Frank Florentino 🇵🇪
Cron
Frank Florentino 🇵🇪
If have a django app running
Anonymous
If have a django app running
Then run it on a Linux host and edit its crontab. Here's a doc reference: https://www.mankier.com/1p/crontab
Anonymous
Although, would be best to use Celery task instead if its something that requires fiddling with the app scheduler more than the system resource.
mojo
Can we get an instance of email what we have sent I have doubt in get connection method in email sending
Keshav
I am building a blog app. Suppose I have logged in as user X and I want to access user Y's profile by clicking on his username. How can I achieve this in Django?
Bunty chhatri wala..
Anonymous
Can we get an instance of email what we have sent I have doubt in get connection method in email sending
How did you send an email? If its running off of a local mail server, there should be logs. If no logs, enable them.
ZK
can anyone help me in solving the ckeditor and mdeditor files not found in production
ZK
Plz help
Jay
Jwt in login nd signup? How?
Follow this tutorial https://simpleisbetterthancomplex.com/tutorial/2018/12/19/how-to-use-jwt-authentication-with-django-rest-framework.html
Sahu
Plz anyone help ,I'm beginner vin Django ....now I choked
Sahu
It's showing your not connected
Sahu
What to do
Mirco
Noted, do you have sample code? Or article references? Especially populate the initial value when do update. Thanks
Unfortunately don't, but I think if you look for better, you should find some references online
Mezcla
Unfortunately don't, but I think if you look for better, you should find some references online
Noted, actually i tried to search in online but didn't found. I will try to search again later thanks
Anonymous
hello, anyone familiar with docker here?
Doragonsureiyā
hello, anyone familiar with docker here?
Please don't ask meta questions like: "Any user of $x here?" "Anyone used technology $y?" "Hello I need help on $z" Just ask about your problem directly! With a very high amount of people here the probability that someone will help is pretty high. Also please read: http://catb.org/~esr/faqs/smart-questions.html
Anonymous
I am doing a course on the rest framework, and also learning docker within it my instructor said: No, services are not within docker images, but rather they are running an instance of a docker image. The term Docker image is a used to describe the output from building your Dockerfile. A docker container is used to describe a running instance of your image. In Docker Compose, we setup services to tell Docker Compose how to run our images to create containers. Does this make sense? Cheers, Mark __________________
Anonymous
but my question is, if i have database service and app service, are two containers built from the image, one for the app and one for database. I have been stuck on this idea of services for Days, would really appreciate if someone can get back
Anonymous
So let me get this right. I have a dockerfile. I build the dockerfile to get an image. In docker-compose I put two services. Hence when i do docker-compose run, my two services run as two docker containers
Anonymous
is this a correct analogy/theory
Anonymous
yup, you can see the containers up and running
I was very confused, I must say a big thank you.
sravan
How to run celery task with some delay
Pankaj
How to run celery task with some delay
You can use retry method for this self.retry(countdown=10) Then task will retry after 10 sec
Baku
I have a answer field in my model, how i can get objects where the answer is not empty?
sravan
You can use retry method for this self.retry(countdown=10) Then task will retry after 10 sec
No, I want the task to execute after 15 minutes once it's in queue
Anonymous
hello guys ı want to use templates forms and ı wanna saved can ı do this ?
Anonymous
ı dont want use django forms ı want use template form
Pankaj
No, I want the task to execute after 15 minutes once it's in queue
Then you can use apply_async method and pass desired value for countdown parameter in that
Pankaj
Can u share ss
Baku
is not working
i solved this with Model.objects.filter(answer__exact='')
Loki
Is there any wat to hide parameters in url?
Baku
tnx
Loki
How?
Pankaj
How?
It will be like requests.post(url=your url,data=dictionary) In the dictionary you cn put your desired key value pairs
Prakash
The problem happens if the class in the model defines a Meta class as well: class Identity(models.Model): display_name=models.CharField(db_column="DisplayName",max_length = 200) class Meta: app_label = "something" Now, if I run the makemigrations command, I get a "no changes detected" message, and no migration file is generated: > python manage.py makemigrations myApp No changes detected in app 'myApp' Please note that this was just an example, and the problem happens also if I run the command for the first time on a class with a Meta class defined, or if I delete the previously generated migration files.
Prakash
Just try python manage.py makemigrations
Already tried it's migration file is created but it won't creating table in DB Only when I define meta class Otherwise it's work fine with makemigrations
Rohan
Hi, I am new to django.
Rohan
I have few doubts about django
Rohan
does django supports google authentication, push notification and chat box
Mihir
yes
Mihir
all auth package
Rohan
ok
Pankaj
Means are you using migrate cmd after makemigrations
Prakash
Are you migrating the migration files?
Python manage.py makemigrations appname Python manage.py migrate I applied both commands
Brandon
Python manage.py makemigrations appname Python manage.py migrate I applied both commands
I am not expert but i think you need to migrate first After makemigrations appname
Prakash
How did u conclude that?
With meta class in models are not migrating in to database
Prakash
How did u conclude that?
If is there any way suggest me
S Karim
get_context_data method is not calling in TemplateView
S Karim
I’m sending the POST request to this function and I have post method in it.
S Karim
Can anyone help me with this
iiiiiiπoW
Hi I am trying to create a rasa nlu chat bot My code is below. But showing error http://pastebin.com/V7CXK1KM https://pastebin.com/WR3TZrCW
Anonymous
Hi I am trying to create a rasa nlu chat bot My code is below. But showing error http://pastebin.com/V7CXK1KM https://pastebin.com/WR3TZrCW
This should help. https://github.com/RasaHQ/rasa/issues?q=ValueError%3A+dictionary+update+sequence+element+%230+has+length+1%3B+2+is+required
Deepak
hi i have some problem
Deepak
Password reset sent We’ve emailed you instructions for setting your password, if an account exists with the email you entered. You should receive them shortly. If you don’t receive an email, please make sure you’ve entered the address you registered with, and check your spam folder. I get this but no link is received on email
Deepak
i am performing password reset using django
Deepak
Yeah it is registered
Serj
How to connect jinja2 to Django 3. Does it even work ? I specified the templates in the file 'settings.py': https://dpaste.org/b98p
mhamed
Hi i have a question