Muflone
My pycharm trail has expaired can any one help plz
You can download the free community edition or if you're a student you can ask an academic license
n
and piracy is not allowed here
Sorry.. But any alter solution
Muflone
Then use the free edition
Pius
Does anyone have good example or tutorial on creating multiple cron job django backend ( I would add react frontend on top)
Pius
cron jobs would be on constant rotation
Pius
Celery is bit too difficult to learn in short span of time on my own :(
🏳️‍🌈Robby [ Private Message = Spam]
Celery is bit too difficult to learn in short span of time on my own :(
Sounds like your're not qualified to do your job then.
Pius
Well yeah, I just wanna learn
🏳️‍🌈Robby [ Private Message = Spam]
Pius
I have deadline on myself
Pius
On to the next chat then, thanks for asking tho
🏳️‍🌈Robby [ Private Message = Spam]
Well maybe adjust that deadline and learn properly
Pius
Mhm thanks
Sumit
Can anyone send the runnable code of get location (Latitude and longitude)
Macurrent
ok. Am trying my best
Do i really have to set django secrete key variable everytime i stop my server from running? Or something was wrong with my environ configuration?
Macurrent
something wrong
I think thats the reason why my ckeditor save button does not work
Mirco
I think thats the reason why my ckeditor save button does not work
if secret_key is not set , django won't run
Mirco
Secret key is automatically generated.you don't have o interfere with it...
you can specify your own if u want it's not untouchable You can use online tool or django built-in to generate new ones
Macurrent
if secret_key is not set , django won't run
I have been setting it but whenever i stop my server. Django complains that i should set the secrete key
Macurrent
I was following this project.
The settings.py is the same as this in the project
Mirco
Mirco
and have u set the DJANGO_SECRET_KEY env var into your environment ?
Macurrent
So what i did was. I installed the environ then copy pasted the settings.py in this settings.. You can view it on my git account @macurrent.
Macurrent
and have u set the DJANGO_SECRET_KEY env var into your environment ?
In which part basically. I dont remember doing that
Mirco
anyway if u have install requirements into your venv , u should have django-environ
Mirco
you just missed to set the env var
Mirco
I inderstood it..
I don't think so imho do u understand what environ does into your settings.py ?
Macurrent
https://django-environ.readthedocs.io/en/latest/
Macurrent
you just missed to set the env var
In the settings.py. i did
Mirco
In the settings.py. i did
ok another question do you know what env vars are ?
Macurrent
Environment variables are a key value pairs that can affect how a program runs. They need to be set at some point before a process is run so the process can read them in and act accordingly. A lot of times in production environments your database name and password are set as environment variables so that information does not end up in a code repository somewhere.
Macurrent
SECRET_KEY = env('DJANGO_SECRET_KEY')
Macurrent
SECRET_KEY = env('DJANGO_SECRET_KEY')
export DJANGO_SECRET_KEY='123abc'
Macurrent
yah i already did that. My problem is that the ck editor does not save data and the server is running without errors
Mirco
SECRET_KEY = env('DJANGO_SECRET_KEY')
that's why I asked u if you know what env vars are because you continously refer to that line instead of export it
Mirco
I think that secrete key i can use any?
do you still have SECRET_KEY warnings ?
Macurrent
yah i already did that. My problem is that the ck editor does not save data and the server is running without errors
after exporting the secrete key. It works fine without errors. The problem is that my button save does not submit and there are no errors shown in the terminal
Macurrent
that's another issue first one is gone so good 😊
Actually that problem comes everytime i close my code editor and open it again
Бакыт
Guys, I am trying to create a model for booking system.here( https://pastebin.com/TB997Uam ).I dont know to make particular flat to be unavailable on particular date if another user already booked it.Can you please help on this
🏳️‍🌈Robby [ Private Message = Spam]
🏳️‍🌈Robby [ Private Message = Spam]
Бакыт
You have a Reservsation Model and you do a search to see if the given date range overlaps with the current requested dates and fail if it does.
Thank you for your response.I was about to ask stupid question but first i will read which you send
🏳️‍🌈Robby [ Private Message = Spam]
🏳️‍🌈Robby [ Private Message = Spam]
Сарманов Бакыт https://github.com/luisza/djreservation
Artyom
Hi, guys! I used field_name = serializers.CharField(source="fell_type.name", default=None) in my serializer , cause I had to display name value of foreign key field not pk value. And it is worked. But today I have started work with POST from my frontside and djang throws that: ValueError at /api/my-api/ Cannot assign "{'name': '1'}": "Fca.cel_nazn" must be a "ForestPurpose" instance. . So I think, after my actions with django except serializers.CharField , django expects name value not pk values too... How to do it correct? display values of name not pk value , and POST it succesfully?
highnes
My django project runs well on localhost but when i host it on python anywhere ,migrate throws error relation doesnot exist
highnes
Yeah
🏳️‍🌈Robby [ Private Message = Spam]
Yeah
For production?
highnes
Actually my first migration worked
highnes
Now i rename some of my tables now it throws error
🏳️‍🌈Robby [ Private Message = Spam]
Now i rename some of my tables now it throws error
Does it throw errors when running in dev?
highnes
Nop
highnes
But on dev i use sqllite, here i use prostgres
🏳️‍🌈Robby [ Private Message = Spam]
🏳️‍🌈Robby [ Private Message = Spam]
I'd bet money that you fucked up somewhere or you didn't run the migration properly
highnes
It shows a Programming Error
highnes
Relation doesnot exist
🏳️‍🌈Robby [ Private Message = Spam]
It shows a Programming Error
What? You're not making any sense right now. Ask smart questions.
🏳️‍🌈Robby [ Private Message = Spam]
highnes
All good