Re: Deploying Django via wsgi

2016-03-15 Thread Avraham Serour
unless you are strictly required to use apache I strongly suggest using nginx and uwsgi to deploy your django application On Tue, Mar 15, 2016 at 6:01 AM, wrote: > Quite new, and trying to deploy first Django site. I keep getting 503 > errors. Here are the particulars, any hints as to what I'm

Re: Django + Apache Web server on Windows

2016-04-05 Thread Avraham Serour
you won't have problems until you try On Mon, Apr 4, 2016 at 8:12 PM, asimkon wrote: > > I would like to configure Django with Apache web server on Windows using > XAMPP or Wamp. I looked over the Web until i came across the following > video https://www.youtube.com/watch?v=VOkXG0jL_8U. Do you

Re: Help with Django initial setup

2016-04-05 Thread Avraham Serour
it seems you have a problem with one of your methods, you declared it without arguments when it should receive one (self) it looks like it is on one of your models, please recheck your models.py On Mon, Apr 4, 2016 at 11:31 PM, George Mathew wrote: > Hi, > I am trying to learn Django. > > I was

Re: Pycharm and DJANGO_SETTINGS_MODULE

2016-04-10 Thread Avraham Serour
the run configuration is separate from the console environment On Thu, Apr 7, 2016 at 7:59 PM, Dariusz Mysior wrote: > Hi in linux console it's ok but in Pycharm in IPython console when I > execute f.e. from django.contrib.auth.models import AbstractUser i have bug > like below > > > django.cor

Re: What Python/Django code checkers do you recommend?...

2016-04-10 Thread Avraham Serour
I use all, specially because they are free for open source On Fri, Apr 8, 2016 at 7:00 PM, Fred Stluka wrote: > Python/Django programmers, > > What code review tools do you use? Do you run them automatically > when checking in new code? Do you recommend them? > > Details: > > I'm working on a

Re: a question about redis cache

2016-04-10 Thread Avraham Serour
why do you want to use redis for this?, top is trivial to the database On Sun, Apr 10, 2016 at 3:22 PM, Xin Liu wrote: > Let's look at the following scenario: > A website has 1 player, to make question easier, I use mysql storage > player with just one table: "player_table" > --table h

Re: Emails to users

2016-04-10 Thread Avraham Serour
Of course there's, you'll need to create email templates and then email the users On Sun, Apr 10, 2016, 8:47 PM Luca Brandi wrote: > Hi > I am wondering how the admin can communicate to his users...Is there a way > for example to create email templates and then email them to user? THANKS > > --

Re: Comparison of django MTV and MVC architecture

2016-04-17 Thread Avraham Serour
I have no idea what rails does with his life, but you can still understand django under the MVC pattern: models are models, what django calls view is the controller and the template is the view. On Sat, Apr 16, 2016 at 4:10 PM, Mukul Chakravarty wrote: > Can we say that views in MTV architectur

Re: No Downtime Code Releases

2016-04-19 Thread Avraham Serour
I don't think you would gain anything by separating your models to a different repository, what are you trying to gain here? if you put a maintenance page when doing migrations it won't matter if the models are from a different package or not. you could still run migrations on a live system, you

Re: No Downtime Code Releases

2016-04-19 Thread Avraham Serour
mailto:f...@bristle.com -- > http://bristle.com/~fred/ > Bristle Software, Inc -- http://bristle.com -- Glad to be of service! > Open Source: Without walls and fences, we need no Windows or Gates. > -- > On 4/19/16 12:12 PM, Avraham Serour wrote: > >

Re: request user

2016-04-20 Thread Avraham Serour
if you can get the request object you can get the current user with request.user On Mon, Apr 18, 2016 at 9:38 PM, Elias Coutinho wrote: > Good afternoon people, > > I am using django material, LayoutMixin > > My view is: > > class NewProfissoesPessoaView (LoginRequiredMixin, LayoutMixin, >

Re: Issue with Django Password Normalization

2016-04-20 Thread Avraham Serour
in summary: "Unicode Normalization Forms are formally defined normalizations of Unicode strings which make it possible to determine whether any two Unicode strings are equivalent to each other" as I see this would be highly unsecure for passwords, this is something like converting special characte

Re: Issue with Django Password Normalization

2016-04-20 Thread Avraham Serour
ode Normalization > for User names and Email Ids using NKFD Normalisation Algorithm. > > > On Wednesday, April 20, 2016 at 6:51:18 PM UTC+5:30, Avraham Serour wrote: >> >> in summary: "Unicode Normalization Forms are formally defined >> normalizations of Unico

Re: Issue with Django Password Normalization

2016-04-21 Thread Avraham Serour
so it seems it would only need to use unicodedata.normalize(input, 'NFKD') on usernames and passwords ? https://docs.python.org/2/library/unicodedata.html On Thu, Apr 21, 2016 at 6:11 PM, Rick Leir wrote: > username = models.CharField( >_('username'), >max_length=150, >unique=True,

Re: django wamp

2018-07-08 Thread Avraham Serour
yes, it is possible. You are correct, they need to listen to a different port On Sun, Jul 8, 2018 at 9:24 AM Gerald Brown wrote: > Is it possible to run 2 servers (Apache & Nginx) on the same system? > > Maybe if they listen on different ports i.e. 80 & 81 > > On Sunday, 08 July, 2018 01:09 PM,

Re: How to delete least recently used not expired django sessions?

2018-08-20 Thread Avraham Serour
maybe something like this could be useful for your use case: https://pypi.org/project/django-session-timeout/ it has an option for SESSION_EXPIRE_AFTER_LAST_ACTIVITY maybe this could also be useful for you: https://django-session-security.readthedocs.io/en/latest/ On Mon, Aug 20, 2018 at 8:34

Re: Django on IIS

2018-12-18 Thread Avraham Serour
I feel your pain, once I had to deploy a django project on windows, after trying many different options I installed cygwin and form there nginx+uwsgi like any other normal person. Today microsoft have WSL, I think you may use that too, you can still use IIS to route traffic and forward the http co

<    1   2   3   4   5