self).save(commit=False)
> instance.flag1 = 'flag1' in self.cleaned_data['multi_choice'] # etc
> if commit:
> instance.save()
> return instance
>
>
> 'MH' via Django users schrieb am Sa., 12.
> Feb. 2022, 22:11:
>
>>
Hi
I have an update view which enables me via a form to update the data for a
particular model object instance (as it should do). However, when a
particular field gets changed I would not only need to update the fields in
the database, but I would need the save routine of the update view to
tr
.22, 'MH' via Django users wrote:
> > My two questions are:
> > 1. Do you use juypter for django development?
>
> No and I've never heard of it, but now I have. Thanks.
>
> > 2. If not, which editor or free IDE do you use?
> >
>
> I use Emacs
Hi everyone
I have built a few django apps, but on a very basic level and only for my
own usage. Little helpers for self management. So far I just used vi(m).
Now I tried out jupyter for the first time. Looks great and thanks to a few
links from Google I could also load the django kernel in jup
Hi
I have never rendered graphical objects for a web app, but now I want to
generate process views. So, there should be something like a circle marking
the process start, a rectangle box indication a subsequent activity, and
another circle indicating the process end. Between these elements ther
Thank you, I will try that.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit
Hi
I have context variable "convar". And this convar consists of a dictionary.
So, it might look like:
convar
| General case
|
|- Speical case A
|
|--Special case B
So, the general case and the special cases are the keys. And there values
are lists. And in these lists I
Hi
I have a formset that is created by an inline formset factory. So, I have
seen that during the creation I can pass the extra argument in order to
create more blank forms. Fine :)
But I also have the case where I want to pre-populate a formset based on
entries in the database. In a way I tho
ing for "inline formsets" because that's what you want. You can
> of course choose some other tutorial - but I think this one explains it ok.
> You will also need to do some javascript to get it working.
>
> Regards,
>
> Andréas
>
>
> Den fre 5 juni 2020 k
Hi
I am coding a personal cookbook just for fun. On one site I want to be able
to enter the ingredients, including the corresponding amount. So, I don't
want to put all of that in one textarea, but in separate fields, so that I
could recalculate the ingredient's amount if I have to cook for mo
Hi
I want to modidy my view that is based on UpdateView and it should work
when called via post method.
This is what I have so far and I am not sure if it makes sense or if it
could be done in an easier way.
class GD_Update(UpdateView):
# setting the model, form_class and template_name
mod
Hi
I just saw that when I pass not an object, but a queryset with values_list
to a template, I cannot access a filefield like object.field_name.url, as
url is a property.
Can you give me advice how to get from the values_list to the url property?
Best regards
MH
--
You received this message
Hi
I do not know how to access request.POST, when I call UpdateView. Just to
avoid a misunderstanding: I do not want to process the data after updating
a model, but I want to pass a parameter to the UpdateView, which is not
model related when the page opens.
But I get a NameError that request
PS: I was just asking myself if I could somehow tell django what the
hierarchy of views might be instead of defining the breadcrumbs for each
view manually.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and sto
Hi there
I need some advice how to implement breadcrumbs in a base.html.
I have already installed django-bootstrap-breadcrumbs, registered it in the
apps and so on. So far I would say, it's working,
Just for testing purposes it looks like this:
{% load django_bootstrap_breadcrumbs %}
This is not strictly related to the other question about third party app
integration, but I also want to write another little, which does not
necessarily has anything to do with the first two that I wrote. Therefore I
was wondering if it would make more sense to start a new project for that
or
Thank you very much.
I will read about plotly (and dash just to see what that is :)).
Best regards
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-users
Hi
I wanted to create some kind of dashboard for myself. So I googled some
applications of django for analytical dashboards and they proposed things
like highcharts. From what I read I got the impression that I would use
external sources and as if I would transmit data to other sites (e.g.
htt
Friendly push :)
On Wednesday, April 8, 2020 at 6:09:21 PM UTC+2, MH wrote:
>
> Hi everyone
>
> I created two first, very small apps with Django and serve them on my NAS
> with gunicorn and nginx as reverse proxy. That took me quite a while as I
> am not an experienced coder or administrator.
Hi everyone
I created two first, very small apps with Django and serve them on my NAS
with gunicorn and nginx as reverse proxy. That took me quite a while as I
am not an experienced coder or administrator. Now I successfully installed
Mayan EDMS which uses its own Python instance in an venv and
Dear Kasper
Thanks a lot. Yes, this has been too far away from django. But thanks
nevertheless!
Best regards
MH
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
t
PS: The content of the last mentioned folder looks like this:
/usr/local/arm-unknown-linux-gnueabi/lib/gcc/arm-unknown-linux-gnueabi/4.9.3$
ls *
crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o libgcc.a
libgcc_eh.a libgcov.a
finclude:
include:
arm_acle.h float.h mmintrin.h sani
Dear Kasper
Thank you very much. If you still read this, I would like to ask a question
about cross compilation. I found this developers guide from Synology:
https://global.download.synology.com/download/Document/Software/DeveloperGuide/Firmware/DSM/All/enu/Synology_NAS_Server_3rd_Party_Apps_Int
So, I would perhaps try something like
url("^token/", TokenView.as_view(), name="token"),
url("^revoke_token/", RevokeTokenView.as_view(), name="revoke-token"),
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group a
Dear Ali
I am just new to this myself, but I think it comes to down to the question
what is the first pattern that matches for django. As far as I know we can
use the ^ in order to tell django/python that a pattern should be at the
start of a string that is searched. So I am not mistaken, you c
No ... I cannot just copy it. Then it is asking for lxml again.
ImportError: No module named 'lxml
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-user
>From both folders I tried ./python3 -m pip install docx, but both resulted
in an error message. Nevertheless, I know that one of the two works with
docx and runserver. So I guess, I installed it somehow in a different way
and one of the python3s can use that.
Ha, so I found a package in
/
type -a python3
python3 is /opt/bin/python3
python3 is /usr/local/bin/python3
Can this actually be that a command leads to two binaries?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails fr
Hi Omar
Thanks for your help again. Indeed, runserver works depending on which
python3 I am using. But I guess this is the problem. The python3 from
/volume1/@appstore/py3k...and..so..on seems to work with gunicorn, but this
is not the same python3 that works with docx. I still try to figure ou
Dear Kasper
Before I do something very difficult like this cross compiling I wanted to
try to get gcc to run on the synology diskstation. But there is a general
pip issue that I do not understand.
./pip3 search gcc
clang-fake-gcc (0.2.1) - A GCC-like compiler interface, but runs
Clang
Thanks Kasper,
I will think about this. Yes, it is kind of intimidating. But it is also
too early for me to give up. And given all the praise for such NAS devices
I am really somewhat angry when I see that it seems to be a too difficult
challenge just to get small webserver with a few python sc
Dear Kasper
I will google how I can do this cross compiling. Just recently a friend
told me that this could not be done, because it would always have to be
done on the same machine. I guess there is no way around that.
How would an environment help?
Best regards
MH
--
You received this messa
So, even as someone who has not so much experience in these things I would
say that I lack three things: libxml2, libxslt, and
usr/local/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-ccache-gcc
About the first two: I cannot do an apt-get. I am working on a synology
diskstation.
I can also not install lxml via pip3. Here is a short part of the output:
cc -I/usr/include/libxml2 -c /opt/tmp/xmlXPathInit80x1qqz_.c -o opt/tmp/
xmlXPathInit80x1qqz_.o
unable to execute 'cc': No such file or directory
Dear Omar
Finally I figured out, which of my gunicorn versions belonged to the right
python3 that I invoked earlier. Now it seems to start. I write seems
because in the browser it now immediately gives me an error that it cannot
find a certain module "docx". I will come back to that in a differ
If I am not totally mistaken it could be that gunicorn wants to work with
python2.7 while I did everything with python3. But how could I direct
gunicorn to take python3?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this
Is there anything particular hat I have to write into that wsgi.py file?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-users+unsubscr...@googlegroups.co
Dear Omar
but would that help me right now? Besides the problem of finding the right
pip, I mean? As you can see, even now my gunicorn won't work :(
On Thursday, March 5, 2020 at 4:04:46 PM UTC+1, Omar Abou Mrad wrote:
>
> As of Python 3.3 virtual environments are builtin, it would be wise to
gunicorn -w 4 wsgi:application
[2020-03-05 15:55:51 +] [4472] [INFO] Starting gunicorn 19.9.0
[2020-03-05 15:55:51 +] [4472] [INFO] Listening at: http://127.0.0.1:8000
(4472)
[2020-03-05 15:55:51 +] [4472] [INFO] Using worker: sync
[2020-03-05 15:55:51 +] [4483] [INFO] Booting wor
/volume1/@appstore/py3k/usr/local/bin$ ./pip install gunicorn
Defaulting to user installation because normal site-packages is not
writeable
Requirement already satisfied: gunicorn in /volume1/homes/admin/.local/lib/
python3.5/site-packages (20.0.4)
Requirement already satisfied: setuptools>=3.0 in
To be quite honest, this is really challenging for me, because the synology
OS drove me nuts. I am under the impression that I have multiple
installations of python and pip running now.
In order to get an overview, I will now try to find every pip on my system
and to install gunicorn everywher
Dear Omar
python -c "import django.core.wsgi" && echo "Yup, works!"
Traceback (most recent call last):
File "", line 1, in
ImportError: No module named django.core.wsgi
but
python3 manage.py runserver 0:8000
Watching for file changes with StatReloader
Performing system checks...
System check
Somehow I cannot write everything into one post that I wanted to reply.
Here comes the rest of my original post.
gunicorn -w 4 wsgi:application
[... continued ...]
Traceback (most recent call last):
File "/opt/lib/python2.7/site-packages/gunicorn/arbiter.py", line 583, in
spawn_worker
File
Thanks Omar,
but do I have to write something into that wsgi file?
gunicorn -w 4 wsgi:application
[2020-03-05 12:55:09 +] [29297] [INFO] Starting gunicorn 19.9.0
[2020-03-05 12:55:09 +] [29297] [INFO] Listening at: http://127.0.0.1:8000
(29297)
[2020-03-05 12:55:09 +] [29297] [INFO]
Thanks Omar,
but do I have to write something into that wsgi file?
gunicorn -w 4 wsgi:application
[2020-03-05 12:55:09 +] [29297] [INFO] Starting gunicorn 19.9.0
[2020-03-05 12:55:09 +] [29297] [INFO] Listening at: http://127.0.0.1:8000
(29297)
[2020-03-05 12:55:09 +] [29297] [INFO]
Could anyone tell me how to start correctly the unicorn (integration)?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-users+unsubscr...@googlegroups.com.
Hi Omar
Actually I do not know why apache is better than the development webserver
from django or gunicorn, but I wanted to give it a try. The installation
worked.
Now I am not sure what I am doing wrong:
gunicorn project/wsgi.py:application
[2020-03-04 13:46:26 +] [28939] [INFO] Starting
Dear Tosin
In my html template I used
{% csrf_token %}
{{ form.as_p }}
and in my views.py in the corresponding view I have a section where I check
if the method is POST:
if request.method == 'POST':
Later I do this:
var_list_of_checked_boxes = request.POST.getlist('var_select
Dear Andreas
I want to build a little system, which consists of several django apps that
help me in my daily life. But I don't want to upload documents about
insurances and stuff to any cloud. Therefore I wanted a solution on premise
and the NAS seemed to be a good choice. Could be wrong about
Dear nitish
Thanks for your reply. I guess it is kind of a linux that Synology uses,
but it is different from other distros. So many advice on the internet
builds upon the ability to install packages via apt-get or ipkg, but both
are not available here. Somehow (really only somehow) I got entwa
Hi
I got something like this to work with
var_selection = forms.MultipleChoiceField(required=False, widget=forms.
CheckboxSelectMultiple, choices=a_list_that_i_prepared_previously,)
On Tuesday, March 3, 2020 at 12:46:10 PM UTC+1, Tosin Ayoola wrote:
>
> Good day guyz,
> i'm working on a proj
Dear all
I have a problem to get my django app from development to production stage
on a Synology Diskstation. I installed apache 2.4, but I do not know how to
proceed and I am always running into errors. Please give some guidance and
I will add specific error messages.
Best regards
MH
PS: I
Hi there
I am rather a newbie, but after some problems I got django installed on my
Synology Diskstation. So, I ignored many other problems and am very happy
that I built my very first, very simple app. And now I would like to move
it from the development stage to the production stage. Obviousl
53 matches
Mail list logo