Anonymous
assign to user.profile instead of just user
Anonymous
Hi, guys I am new to django and I have the following problem. In the block body the adminstrator should enter text which is formatted in word and the text must appear in page as formatted in word. And could suggest any good cms for django
ʚɞÇherry Łoveʚɞ
you dont need to re-save profile anymore.
Anonymous
You need to
Anonymous
I was just replying to r0b0t's error
ʚɞÇherry Łoveʚɞ
Anonymous
Hi, guys I am new to django and I have the following problem. In the block body the adminstrator should enter text which is formatted in word and the text must appear in page as formatted in word. And could suggest any good cms for django
Django Bot
>> Links - Project Electron
Django Bot
>> Links - ZunZunSite3 - Online Curve Fitting and Surface Fitting - The Ultimate Guide to Django Redirects – Real Python
Django Bot
>> Blogs - django-pipeline and Zopfli >> Links - How to Use Bootstrap 4 Forms With Django - python - Django Query That Get Most Recent Objects From Different Categorie
Django Bot
>> Links - Implement Django Watchman Custom Checks in NiceDay Backend
pino@mastrobirraio ~$
I guys i need to insert an addictinoal field to a CreateView form
pino@mastrobirraio ~$
to do this, i've created a ModelForm
pino@mastrobirraio ~$
And i've passed it into the view
pino@mastrobirraio ~$
But i receave this exception
pino@mastrobirraio ~$
if i define the field as its want, the Model Form class will override and i will see only the model fields
pino@mastrobirraio ~$
how can i solve this problem?
Mirco
You have typed from_class instead of form_class
Mirco
Try changing it, so Django can see your form correctly
Jimmies San
pino@mastrobirraio ~$
Jimmies San
i want to die
it's muffin time!
Mirco
😂😂
Anonymous
Hello please I need help, how do I make a User uploads to specific directory, e.g Mike signed up on my site, the requirements is for him to post his Profile pics, Laptop pics, Pet Pics and his Phone Picture. I want this to save in the directory Mike with sub folders phone, Pet, laptop and Profile. Please how do I achieve this, it's urgent.
Abhi
Hi guys, I am using a server on digital ocean with nginx+django whenever i try to access a media file like .mp4 i get 403 Forbidden on my browser I tried changing the owner to walker (my username) Still it doesnt work
Abhi
on error.log it gives : ....... "/home/walker/media/360/blink-182/blink-182 - First Date.mp4" failed (13: Permission denied) ......
Abhi
for what folders should i change the owner to the user
Rohan
for what folders should i change the owner to the user
The folders where you're storing media 🤷‍♂
Abhi
actually The mp4 files i want to access are inside a read-only mounted filesystem
Abhi
does this change anything?
Rohan
Can you do ls -l on that directory ?
Rohan
And show the result
Abhi
-r--r--r-- 1 walker walker 20823 Jun 16 2009 blink-182 - Adam's Song.jpg -r--r--r-- 1 walker walker 27267262 Jun 16 2009 blink-182 - Adam's Song.mp4 -r--r--r-- 1 walker walker 20839 Jun 16 2009 blink-182 - All The Small Things.jpg -r--r--r-- 1 walker walker 14699120 Jun 16 2009 blink-182 - All The Small Things.mp4
Abhi
suppose i want to access the file /home/walker/media/local/blink-182/blink-182 - Always.mp4
Abhi
what should i check?
Abhi
is there any configuration in my nginx config file?
Abhi
which should be changed or added?
Jimmies San
what should i check?
user/group permissions. not only for file but in path. nginx it depents: if it's different user or not.
Abhi
how do i check for which user nginx wants permission?
cj
how do i check for which user nginx wants permission?
See /etc/nginx/nginx.conf, it's on the first lines
Abhi
See /etc/nginx/nginx.conf, it's on the first lines
thanks alot! Actually the user was set to www-data
Abhi
Does Nginx by default limit downloading speed?
Abhi
I am hosting a server on digital ocean but the downaload speed i am getting thorugh it is nearly 110 kbps
Jimmies San
no. you have other issue
Jimmies San
110k is really few
Django Bot
>> Links - mwarkentin/django-watchman: django-watchman exposes a status endpoint for y - An introduction to the Django Python web app framework | Opensource.com - AltSchool/dynamic-rest: Dynamic extensions for Django REST Framework
Egor
Is Django support full text search by time?
Jimmies San
Is Django support full text search by time?
yes, but it depends from the components. so if you have a elastic, a solr, postgres and so on
Egor
yes, but it depends from the components. so if you have a elastic, a solr, postgres and so on
SearchVector by datetime field doesn't work, do you have any examples about how to use PG fts in Django. Or maybe PG fts doesn't work with datetime?
Combot
Egor (0) has increased reputation of Jimmy San Logging Log (1)
Jimmies San
but if you have a datetimefield maybe you can filter on that
Jimmies San
it's not the same thing i know :\ just an idea
Egor
but if you have a datetimefield maybe you can filter on that
I would like make search on group of fields, and those group of fields depend from type of logged user
Jimmies San
try to look here maybe help you http://www.paulox.net/2017/12/22/full-text-search-in-django-with-postgresql
Egor
try to look here maybe help you http://www.paulox.net/2017/12/22/full-text-search-in-django-with-postgresql
Right now I just get stuck with datetime, I think best approach make my own search backend which will try to parse word as date and if success will filter queryset. I'm already trying elastic trough elastic search dsl, but it doesn't understand different date format(dd.mm.yyyy) and integration is not simple
Raghavendra
hii guys
Raghavendra
i am new to django can you suggest me project
Anonymous
CRUD in RAPI
Jimmies San
i am new to django can you suggest me project
check @pythonres for resources like here https://t.me/pythonres/16
Jimmies San
Django Bot
>> Links - How to Use Celery and RabbitMQ with Django
Anonymous
anyone can u please guide is it necessary to learn HTML..JavaScript ..bootstrap.. CSS before learning django?i????please reply
Anonymous
html, javascript... will be for frontend
Anonymous
but you can use bootstrap to make a quick and nice front end and integrate it into django
Anonymous
that's my opinion
Anonymous
Thanks alot dear.. I will follow ur instructions👍👍 thanks for ur guidance
Abhi
Thanks alot dear.. I will follow ur instructions👍👍 thanks for ur guidance
1.complete html track from W3schools (will take not more than a week) 2.watch any youtube video covering css basics (give it 3-4 days) 3.(Assuming you are from python background and have some experience with it) Pick an ebook like : beginning JavaScript 5th edition and read upto the jQuery chapter (You know the basics of js by then) 4.(Finally) learn stuff on the go! i.e. see for solutions as you code for projects and stuff!
syam
If you are a Django developer contribute to https://github.com/IEEEKeralaSection/rescuekerala it is the Git repo of keralarescue.in. They are processing thousands of requests every minute and they would like to have open source communities to help them out with overall optimization, load handling and all.
Jimmies San
i can quickly create it
Albin
Kerala (India) is reeling under the effect of floods. IEEE along with the Govt of Kerala has a website to coordinate rescue efforts. Anyone with experience in optimising Django for performance (especially mapping and database), your help would really be appreciated. Here is the GitHub link https://github.com/IEEEKeralaSection/rescuekerala