Mirco
https://ibb.co/Hp2sSMB
Just for curiosity, is api/video/videotypes/ working ?
Mirco
Are every video urls working except play ?
Luis
Agora.2009.foobar.etc
Luis
It does not match \w
Mirco
Yup, I was also thinking about that issue
Luis
yes
Change the regex to .+
Luis
https://pastebin.com/7dWbmWpG
^play/(?P<name>.+)/$
lew
^play/(?P<name>.+)/$
you're absolutely right
lew
thanks!!
Luis
thanks!!
Happy coding :)
Mirco
you're absolutely right
Anyway that's a simple url pattern, so if u can upgrade to a newer Django version you could use path('video/play/<name>/') where name is a string by default and for complex urls path you can still use regex with re_path
lew
ok, thanks
Anonymous
Can anyone explain add to cart logic in django
Anonymous
Commercial website
Anonymous
Having problems learning Django forms
Anonymous
Using simple is better than complex tutorial
Anonymous
The meta class stuff
Anonymous
For Forms
Anonymous
Let me take a picture
Anonymous
Subject and message
Anonymous
Only one created
Anonymous
Can't send pictures for some reason
Mirco
Mirco
Can't send pictures for some reason
If u read the pinned message, u will know the reason why 😁
Anonymous
Ok
Anonymous
Class NewTopcForm(forms.ModelForm): Message =forms.charfield(***) Class Meta: model =Topic fields =['subject','message']
Mirco
Use pastebin or similar , it's easier to read and we can edit to help u
Anonymous
Okay
Mirco
😁😁
Anonymous
What don't you understand ?
Not able to create logic can you send me codes
cj
Not able to create logic can you send me codes
1: Create products 2: Let users pick products 3: Add products to cart 4: Check-out cart 5: Update products stock in your DB 6: Be happy
Anonymous
Thanks
Anders (izzno / gooood) ๐Ÿ‡ณ๐Ÿ‡ด
I just finished a 300 line models.py and ran migration without a single error, and everything looks ok... Thats NEVER happened...
Mirco
🤣🤣 The perfect scenario of ugly hidden bugs 😂😂 ( hope that's not true 🤣 )
cj
wait until migration_0002...
Anders (izzno / gooood) ๐Ÿ‡ณ๐Ÿ‡ด
🤣🤣 The perfect scenario of ugly hidden bugs 😂😂 ( hope that's not true 🤣 )
Thats what I was thinking... Or, maybe the 3 months of play and prototyping payed off... ;). Anyway you should take some of that credit ;)
Anders (izzno / gooood) ๐Ÿ‡ณ๐Ÿ‡ด
oh god...
Anders (izzno / gooood) ๐Ÿ‡ณ๐Ÿ‡ด
I ment you all.
Anders (izzno / gooood) ๐Ÿ‡ณ๐Ÿ‡ด
;)
Mirco
Do you have tests that cover those 300 lines of new code ?
Anders (izzno / gooood) ๐Ÿ‡ณ๐Ÿ‡ด
What do you think :)
Anders (izzno / gooood) ๐Ÿ‡ณ๐Ÿ‡ด
I am painfully aware of whats to come.
Mirco
What do you think :)
I hope yes , especially for you health 😂
Anders (izzno / gooood) ๐Ÿ‡ณ๐Ÿ‡ด
Next is the admin fiile, then the DRE, then theres the tests... days and days of writing tests.... Then theres the html/css/js which is the fun part....
Mirco
Goood 😁😁😁💪💪
Anders (izzno / gooood) ๐Ÿ‡ณ๐Ÿ‡ด
I went with Sematic UI, if you have not used it you should give it a try.
Mirco
Yup, we have a python community called PyRoma ( PyRome ) here and it's made with Semantic UI
Anders (izzno / gooood) ๐Ÿ‡ณ๐Ÿ‡ด
nice... Rome... Me and wifey love that city...
Mirco
Apart historical heritage, nowadays I don't like it ( but the story is long and we are OT 😂 )
Anders (izzno / gooood) ๐Ÿ‡ณ๐Ÿ‡ด
We will be back after our girl becomes a bit older (3y now, born 9 months after our last trip to rome. 🙄). Ill stop spamming now ;).
Danilo
hi guy, i try make migrate in my project but show this erro for me params={'value': value}, django.core.exceptions.ValidationError:
kintul
How can i make mt first website in django?? Step by step guide will be helpful
Anonymous
Official document is available
kintul
Check django poll app.
https://docs.djangoproject.com/en/2.1/intro/tutorial01/
kintul
Will it do??
lex
How can i make mt first website in django?? Step by step guide will be helpful
https://developer.mozilla.org/en-US/docs/Learn/Server-side/Django
Anonymous
👍
Mr. Rude
Does anyone know where might i find a group like this for react?
Mayank
HI
Mayank
i want to ask an issue that if i want to display tables of 3 different models into one table in django admin area how to do that
Kowalski
Does anybody know any good tutorial for django REST API with djongo? (Apart from the official documentation)
Anonymous
Does anybody know any good tutorial for django REST API with djongo? (Apart from the official documentation)
I know a guy who knows every thing about python and also other subjects. Iโ€™m sure that he can help you
Gio
hi all, is it possible to encrypt a string with the SECRET_KEY and store it in the database?
inchidi
hi all, is it possible to encrypt a string with the SECRET_KEY and store it in the database?
no and dont do that coz thats the proper way. to avoid xy problem, can you tell me why you want to do that?
Anders (izzno / gooood) ๐Ÿ‡ณ๐Ÿ‡ด
is it a bad idea to use lamdas in upload_to ?
Gio
no and dont do that coz thats the proper way. to avoid xy problem, can you tell me why you want to do that?
because I have very sensible information I want to hide in the database, I know that if anyone gain access to the server can use the SECRET_KEY to decrypt the data but the idea is to have another layer of protection