Ebenezer
my name venv is venv
Okay so when the interpreter is changed successfully, you’ll see venv showing at where the python3.8 is
Editing Name
this possible reinstall venv?
Ebenezer
this possible reinstall venv?
I’m not saying you should reinstall venv.
Editing Name
I'm imagining that the virtualenv that was in trouble
Muhammad Shofyan
Hi.. can someone help me with my problem here : . https://stackoverflow.com/questions/66839763/make-edit-funcion-without-conflict-on-edit-booking-django/66841738#66841738 . Thanks
Christof
I do that but it doesnt help
M
Can anyone help me please with a git project which uses drf. I walked though around the CRUD of API just wanted to check what is real use of this in website building
Arun
How to prevent form submission after redirect...any one?
Zey
For adding items to cart I am not using post request is it fine?
Maz
Sacrifice and do the internship. You'll have a star on your resume which is better than most fresh grads. Plus you'll have real-world experience with production apps. And if you do good work your employers may decide to hire you full time. Even if they dont, it will be easier to monkey branch from there.
Akash
I am using django-storages to store private files in s3 bucket. When I add the model to django-admin I get the unsigned url which gives access denied, how to fix it?
Enigma
hey. how can i Place a txt file to the root of the website?
Enigma
the root is the place that files gets save?
Prateek
hey. how can i Place a txt file to the root of the website?
You can set that path in config file on the server or forward the path
Enigma
You can set that path in config file on the server or forward the path
can you explain it more? where is the config file? how should i forward the path?
Prateek
can you explain it more? where is the config file? how should i forward the path?
These both are different this You can forward the path in url py Search the syntax on Google
Prateek
These both are different this You can forward the path in url py Search the syntax on Google
But in some cases it won't work , so you can only define a alias in config file if your website is on production
Random
How to convert ER diagrams into modles
Enigma
R u looking to access ads . Txt🙄
no i want to confirm my domain to use a wallet api...
Prateek
no i want to confirm my domain to use a wallet api...
You can try forwarding first ,in url . Py , if it won't work then write a alias in server config file
Prateek
no i want to confirm my domain to use a wallet api...
In django there is no way to access that file from root directory , on server alias is only way
Enigma
Plz ping me
What? :|
Prateek
What? :|
Actually this is moreover server related stuff not django so msg me personally I will explain you there ,
Tukhtamurod
Plz ping me
dm me or pm me😅
Deezi
How can I automatically add monthly interest to earning users in Django?
Enigma
How can I automatically add monthly interest to earning users in Django?
There was a kind o datetimefield that counts reversly but i dont remmebr it You can use normal date time field and save last time that user earned and compare it witj todays date , if it was more than 30 let the user earn
Randy
Gives an error on this system for entering the number of records (an exception occurs when creating migrations, writes that it cannot find the table, i.e. it simply does not occur due to some error) post = models.Post () part_with_post_count = models.PostPart.objects.filter (post = post) .count () What's wrong with it?
Randy
What you want to do
I want get count of PostPart with concrete post (its PostPart's property) But this line is with exception :(
Enigma
Randy
Which line?
part_with_post_count = models.PostPart.objects.filter (post = post) .count ()
Enigma
Is there any function with postpart name? I gusse she dose not have any model named postpart in her models
Enigma
even i cant find any model named Post in doc
Randy
It looks like count () doesn't exist
Randy
even i cant find any model named Post in doc
class PostPart(models.Model): post = models.ForeignKey(Post, on_delete=models.DO_NOTHING, null=True, blank=True) description = models.TextField(null=True, blank=True) image = models.ImageField(upload_to='images/', null=True, blank=True)
Rajeev
Question : I filtered the data based on user. Logic is implemented in view. It's working fine. But, how to enable for superuser..
Anonymous
Hi Django support how much req/sec?
Ivan
Hi everyone! Who knows, what the best practice to use for checking today date? I have 2 works methods: datetime.now() date.today()
Sai
first one you will get date with time
Sai
In second one you get only date
Игорь
Please advise the material, which describes in detail how to create authorization for several types of users. For example, when a teacher is authorized, he is redirected to the teacher's page, and the student to the student's page
Dany
Hi. Does anybody here has worked before with Websockets? I implemented Websockets and it was working just fine locally. But when I tried to deploy to Heroku, it doesn't even connect.
Dany
What do you mean?
Mariya
hello everyone how can i export django dtabase schema?
Dev
you can take a look at https://github.com/centrifugal/centrifugo
Dany
which websocket server are u using
Just Django with Websockets, following the docs of django channels
Dany
you can take a look at https://github.com/centrifugal/centrifugo
Oh, looks interesting, but I need to do it in the one I said
Dev
hello everyone how can i export django dtabase schema?
Use any database client, connect to your Django dB and export
Alejandra
Hello! How much is the price for to do the backend of a sport betting platform?
Editing Name
Hello, I need to get all the fields of a line that has the same email, how can I make this query in the database that returns everything related to this email? class ValidateAccountSerializer(serializers.Serializer): email = serializers.EmailField() def validate_email(self, email): all_data = CustomUser.objects.filter(email=email) print(all_data) return email class Meta: model = CustomUser fields = ('email',)
Джентльмен
I'm making a website that provides services Shall I create different model for different type of service available
I found as best practices to create 2 models: something abstract one and specific one. For example, you can create model Service (type: [“foo”, “bar”], price, date, <common_fields>) and model FooService (service_fk, <specific_fields>)
Anonymous
Guys, which framework is better, Flask or Django?please be impartial ...
I am here migrate from php framework codeigneiter and laravel , now I'm learning django too for the demand of future.
Faby’s
Hello ! How to generate a Desktop installer for a Django rest framework application.
Faby’s
Hello ! How to generate a Desktop installer for a Django rest framework application.
I want to use my Django rest Desktop application as a local server by installing on my friends machines
Nirupam
How to delete old records in django using periodic task or auto scheduler?
Nirupam
I m asking like cronjob
Nirupam
Timedelte will help to count the time date..not auto scheduling
Rushabh
Timedelte will help to count the time date..not auto scheduling
You need to write end of the script every schedule.every(10).seconds.do(function_name) this things to run your function script every 10 seconds... Cronjob is only for Mac user.....😅😂
Enigma
hey. i want to create a url that whenever the user send a request to it , a .txt file gets downloading automatically. can anyone help me with that?
Sumit
Is csrf_extempt only option to deal with graphql api in production ? Will it be secure. if not, please suggest an alternative
😇ANGELO™️🎧
Is csrf_extempt only option to deal with graphql api in production ? Will it be secure. if not, please suggest an alternative
Csrf is a token which secures keys such that it's not exposed to be changed. It's used for form posts and get methods