is this production environment with gunicorn and nginx is robust, can i
develop a big portal and deploy into it with no problem??
On Sun, Jul 1, 2018 at 9:45 AM Gerardo Palazuelos Guerrero <
gerardo.palazue...@gmail.com> wrote:
> hi Kamal,
> I found this link as part of a django training I did in
To start with, in your Post class, you need to indent the post= and user=
lines. Like this:
class Post(models.Model):
post = models.CharField(
user = models. ForeignKey(..
Python depends on indentation -
https://www.python-course.eu/python3_blocks.php. You can Google "Python
inden
When i execute the makemigrations command i am getting below error
pleae help me to resolve this
(py1) c:\TransportPortal\djangoproject>django-admin makemigrations portal
Traceback (most recent call last):
File "c:\program files (x86)\python36-32\Lib\runpy.py", line 193, in
_run_modu
le_as
Yeah! but now I get this error
'required': 'This field is required.', 'null': 'This field may not be
null.', 'invalid': 'Invalid data. Expected a dictionary, but got
{datatype}.'}
ipdb> serializer.errors
{'cast_weight': ['A valid number is required.']}
In models.py
cast_weight = models.FloatFi
it means that I can't do it on MySQL database! should I change the DB type
and if so which one should I prefer!
Postgres or NoSQL?
On Tuesday, July 3, 2018 at 3:20:40 AM UTC+5:30, Melvyn Sopacua wrote:
>
> On maandag 2 juli 2018 21:33:35 CEST hardik dadhich wrote:
>
>
>
> > Can anyone tell me
Hi,
I'm still stuck on getting Apache to verify as working with wsgi.
Wondering what I might be doing incorrectly.
I'm reading lots of tuts, but it's a jungle out there.
I changed the folder hierarchy for the project and app so
venv, django_project, and django_app are all on the same level as man
You can also use PubNub (https://www.pubnub.com/) or similar services
On Mon, Jul 2, 2018 at 10:29 AM Vineeth Sagar wrote:
> Mikhailo Keda wrote:
>>
>> to fetch emails every N minutes or hours -
>> http://docs.celeryproject.org/en/latest/django/first-steps-with-django.html
>> I want the user to
show your systemd file . looks like an issue there
On Monday, July 2, 2018 at 7:13:44 PM UTC-4, Anirudh Jain wrote:
>
> I am getting the following error on running the command :-
>
> "sudo journalctl -u gunicorn"
>
> Error is :-
>
> Jul 02 20:05:35 ip-172-31-40-226 systemd[1]: Started gunicorn da
I am getting the following error on running the command :-
"sudo journalctl -u gunicorn"
Error is :-
Jul 02 20:05:35 ip-172-31-40-226 systemd[1]: Started gunicorn daemon.
Jul 02 20:05:35 ip-172-31-40-226 systemd[1]: gunicorn.service: Main process
exited, code=exited, status=200/CHDIR
Jul 02 20:
On vrijdag 29 juni 2018 09:44:40 CEST Mickael Barbo wrote:
> I try to create a way to archive (copy) the same object instance on an
> other DataBase.
>
> I followed this advice : # https://stackoverflow.com/
> questions/21699707/python-how-to-copy-all-attibutes-from-
> base-class-to-derived-one
On maandag 2 juli 2018 17:25:20 CEST Kasper Laudrup wrote:
> Instead I added the following to my HTTPS server section:
>
> if ($host != my-website.org {
> return 404;
> }
>
> Seems to solve my problem just fine. Letsencrypts certbot had already
> done something similar for t
or you can move to postgres and take advantage of the jsonfield integration
with django.
On Monday, July 2, 2018 at 3:48:46 PM UTC-4, hardik dadhich wrote:
>
> Hello,
> Can anyone tell me how can I make dynamic Django model fields? I mean to
> say that I want to save excel file data in Django mo
On maandag 2 juli 2018 21:33:35 CEST hardik dadhich wrote:
> Can anyone tell me how can I make dynamic Django model fields? I mean to
> say that I want to save excel file data in Django model using MySQL. and
> excel column can vary. The user can upload 100 column table or he can be
> upload 1000
Hello,
Can anyone tell me how can I make dynamic Django model fields? I mean to
say that I want to save excel file data in Django model using MySQL. and
excel column can vary. The user can upload 100 column table or he can be
upload 1000 column table in the database. so it is possible to add
dy
Hi Melvyn,
On 2018-07-02 11:32, Melvyn Sopacua wrote:
On zondag 1 juli 2018 19:10:15 CEST Tomasz Knapik wrote:
> Maybe you could restrict host headers at the nginx layer, but I don't
> think it's worth your effort...
If you think of it like that it seems like a lot of work. But if you
simp
Mikhailo Keda wrote:
>
> to fetch emails every N minutes or hours -
> http://docs.celeryproject.org/en/latest/django/first-steps-with-django.html
> I want the user to know that the mails are being retrieved -
> https://channels.readthedocs.io/en/latest/
>
Thanks Mikhailo for the prompt reply, I
to fetch emails every N minutes or hours -
http://docs.celeryproject.org/en/latest/django/first-steps-with-django.html
I want the user to know that the mails are being retrieved -
https://channels.readthedocs.io/en/latest/
On Mon, Jul 2, 2018 at 3:53 PM, Vineeth Sagar wrote:
> Problem:
> We are
Problem:
We are developing a email-CRM. The task at hand is to fetch emails every N
minutes or hours. I have received a codebase written by another guy who
left the company,my job is to re-write/re-factor. The guy who previously
wrote the code started a thread whenever a user logged and he put a
Maybe this other article helps you understand the essence of a
virtualenv:
http://blog.aprendapython.com.br/articles/entendendo-virtualenv-1fr69/
Again, Google Translator is your friend.
On 2 July 2018 at 09:28, Vinicius Assef wrote:
> I second Melvyn.
>
> On top of what he wrote, Bruce, I wo
I second Melvyn.
On top of what he wrote, Bruce, I work in an environment with exactly
this limitation: a shared hosting running Apache where I don't have
access
to ssh.
I build my environment (install libs, for that matter) locally and
transfer all my pack through ftp in one shot.
As Melvyn to
In your views file, you don't have any index method - that's what the error
is saying. So you need to solve the url mapping for your index method.
Regards,
Andréas
2018-07-02 5:55 GMT+02:00 Tamilvanan Anbalagan :
> Hi Team,
>
> I am very new to django framework, iI am trying to using simple for
Hi Team,
I am very new to django framework, iI am trying to using simple forms to
save into mysql database. also any samples pls send it to me, which will
help to understand the connectivity.
*see my sample code:*
*views.py*
from django.http import HttpResponseRedirect
from django.views impo
On Fri, Jun 29, 2018 at 11:25:16AM -0300, Fabio C. Barrionuevo da Luz wrote:
> Hello, I need to delete an index created automatically by Django, from a
> third-party application and my own django apps, for later I recreate the
> index optimized way.
>
> this django application is used in several c
Hi All,
I have created a simple database admin panel
(Django2..6+Python3.6+Mysql5.7) where admin can operate create/edit/delete
operations of database.
I am facing following IntegrityError error when I try to Merge two
products and click on Preview from my Django admin panel-
2018-07-02 16:17:
On zondag 1 juli 2018 19:10:15 CEST Tomasz Knapik wrote:
> Maybe you could restrict host headers at the nginx layer, but I don't
> think it's worth your effort...
If you think of it like that it seems like a lot of work. But if you simply
setup a default
server that redirects to the actual Dja
Details are available on the Django project weblog:
https://www.djangoproject.com/weblog/2018/jul/02/bugfix-releases/
--
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 emai
26 matches
Mail list logo