Re: Help in designing excel like sheet in Django/python

2020-04-10 Thread Gerardo Palazuelos Guerrero
Hi, I used in the past the following library: https://bossanova.uk/jexcel/v3/ It enables you to incorporate kind-of Excel spreadsheet so users feels in home; it basically reacts to changes on cells/rows and you decide what to do. It really has lots of good features. On our case, an internal RES

Re: Help in designing excel like sheet in Django/python

2020-04-10 Thread dvij parekh
On Saturday, April 11, 2020 at 7:03:20 AM UTC+5:30, s.patel wrote: > > Hi All: > I need advice on how to design spreadsheet like screen using > python/Django. I need some idea around this for my college project. > > Requirement: Need to build math calculation like framework where user can >

Re: Django form fields order

2020-04-10 Thread אורי
On Fri, Apr 10, 2020 at 11:13 PM Jorge Gimeno wrote: > > By chance did you change Python versions as well? > > No, it's the same Python version (3.6). Anyway, I asked also on Stack Overflow and found a solution: https://stackoverflow.com/questions/61140458/how-do-i-specify-order-of-fields-in-djan

Re: Help in designing excel like sheet in Django/python

2020-04-10 Thread Stephen L
Hello, Django is a web framework that uses python in the backend. You will need JS to build the spreadsheets in the browser. You can use a library like handsontable. On Fri, Apr 10, 2020, 8:32 PM s.patel wrote: > Hi All: > I need advice on how to design spreadsheet like screen using > pytho

Re: Django form fields order

2020-04-10 Thread Mike Dewhirst
On 10/04/2020 6:24 pm, אורי wrote: Hi Mike, Thanks for your suggestion. But right now, I'm looking for a solution without changing the database and the models. This is the way I do it without changing the database. The only model changes are verbose name and overriding two Django model metho

Help in designing excel like sheet in Django/python

2020-04-10 Thread s.patel
Hi All: I need advice on how to design spreadsheet like screen using python/Django. I need some idea around this for my college project. Requirement: Need to build math calculation like framework where user can select rows/column and perform calculations like sum, Mean etc Similar to excel. s

Re: Django form fields order

2020-04-10 Thread Jason
python dicts are ordered in terms of insertion order as an implementation detail in cpython 3.6, and was made part of the spec in 3.7. You might be getting bit by this. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this

Re: In pycharm errror

2020-04-10 Thread Andrew Fetting
Sounds like you are on file too deep. manage.py should be in {project name}\manage.py, not {project name}\{project name}\manage.py. Hope that helps. On Fri, Apr 10, 2020 at 5:23 PM Jatin Agrawal wrote: > Can you please post an image of your directory structure? Maybe then I or > someone else can

Re: Django Testing

2020-04-10 Thread Jatin Agrawal
The main reason behind learning about Testing is to check if the views that we have written for, are generating the expected results or not. Suppose you are writing an APIView to get a list of something, then you should write a testcase to check whether that APIView is giving you the result tha

Re: In pycharm errror

2020-04-10 Thread Jatin Agrawal
Can you please post an image of your directory structure? Maybe then I or someone else can help you in a better way. On Thursday, April 9, 2020 at 7:55:20 PM UTC+5:30, tejasri mamidi wrote: > > While executing py manage.py runserver .. > Terminal showing this file will not found why.. -- You

Re: VIRTUAL ENVIRONMENT

2020-04-10 Thread Jatin Agrawal
It's a good development practice to work on a virtual environment. Virtual environments are completely different from each, they are just sharing the common pc, else they are totally different. The main use of virtual environments is to prevent projects from using the same versions of packages

Re: VIRTUAL ENVIRONMENT

2020-04-10 Thread Malcolm MacKinnon
I'm not sure what you mean by compulsory, but most serious django programmers do use the virtual environment so that they don't run into errors among dependencies. For example, some versions of django may not be compatible with python 3.2, etc. There are different tools available to use a virtual e

In pycharm errror

2020-04-10 Thread najathm mohamed
Try python3 manage.py runserver -- 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 vis

VIRTUAL ENVIRONMENT

2020-04-10 Thread Philip Onyeachonam
is it compulsory that i isolate the virtual environment when im installing Django -- 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...@g

Re: Django form fields order

2020-04-10 Thread Jorge Gimeno
On Fri, Apr 10, 2020, 12:29 AM אורי wrote: > Hi, > > We are using Django 2.2 and I want to upgrade to Django 3.0. We have a > mixin (written in 2017) that add fields to forms: > > class LocalizedFirstLastNameMixin(object): > def __init__(self, *args, **kwargs): > self.language_code =

Re: Name clashes on custom commands

2020-04-10 Thread Tim Johnson
Ah. I see the logic of it. Similar to elisp, but different also. Thank you On 4/10/20 12:44 AM, Andréas Kühne wrote: Hi Tim, You need to make sure that your commands are unique in your project. Otherwise like you have discovered one overwrites the other. This is actually a good thing though

Managing multiple subdomains best practices

2020-04-10 Thread Muammar Al-Shedivat
What are the best practices, when you would like to split your website into multiple subdomains. For instance: admin.example.com, app.example.com and example.com On which level should one do it? I see here two solutions: 1. On the reverse proxy level, here you need to start for each subdomain a

Password Reset Template customization

2020-04-10 Thread mick
I am trying to override the default template of the password reset but I am getting in email the tags instead of proper formatting of the HTML page Thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop

Re: In pycharm errror

2020-04-10 Thread tejasri mamidi
I used dir command to check it ..I don't found manage.py file instead all setting.py url.py there manage .py is missing On Fri, Apr 10, 2020, 05:45 Phako Perez <13.phak...@gmail.com> wrote: > Check the ‘ls’ command to verify is on directory you are running the > manage.py > > And not sure about h

Re: asgiref

2020-04-10 Thread tejasri mamidi
I don't know much about it On Fri, Apr 10, 2020, 12:41 Mike Dewhirst wrote: > On 10/04/2020 4:55 pm, אורי wrote: > > Hi, > > > > What is asgiref and why is it automatically installed when I upgrade > > Django to 3.0 with pip? > > https://docs.djangoproject.com/en/3.0/topics/async/#async-adapter

Re: Help passing the url

2020-04-10 Thread Irfan Khan
Hi, Need to pass id in function as parameter as well as in that post obj On Tue, 7 Apr 2020 at 1:23 AM, Luka Nik wrote: > How do I pass it exactly? > > On Mon, 6 Apr 2020, 9:41 pm ola neat, wrote: > >> You need to add the id as argument in the function >> >> On Mon, Apr 6, 2020, 19:17 Luka Ni

Re: Name clashes on custom commands

2020-04-10 Thread Andréas Kühne
Hi Tim, You need to make sure that your commands are unique in your project. Otherwise like you have discovered one overwrites the other. This is actually a good thing though - we use it in one of our projects to override the "runserver" command. The order of the applications in your project dicta

Re: Django form fields order

2020-04-10 Thread אורי
Hi Mike, Thanks for your suggestion. But right now, I'm looking for a solution without changing the database and the models. I agree that first name / last name is not the best way to name people but it's already this way in my website (Speedy Net). People are not required to use a real / certific

Re: Django form fields order

2020-04-10 Thread Mike Dewhirst
On 10/04/2020 5:28 pm, אורי wrote: Hi, We are using Django 2.2 and I want to upgrade to Django 3.0. We have a mixin (written in 2017) that add fields to forms: class LocalizedFirstLastNameMixin(object): def __init__(self, *args, **kwargs): self.language_code = kwargs.pop('langua

Re: Django form fields order

2020-04-10 Thread אורי
Hi, I want to add that I checked the Django 3.0 release notes [ https://docs.djangoproject.com/en/3.0/releases/3.0/ ] and also releases from 3.0.1 to 3.0.5 and I didn't find any documentation of this issue. אורי u...@speedy.net ‪On Fri, Apr 10, 2020 at 10:28 AM ‫אורי‬‎ wrote:‬ > Hi, > > We ar

Django form fields order

2020-04-10 Thread אורי
Hi, We are using Django 2.2 and I want to upgrade to Django 3.0. We have a mixin (written in 2017) that add fields to forms: class LocalizedFirstLastNameMixin(object): def __init__(self, *args, **kwargs): self.language_code = kwargs.pop('language_code', 'en') super().__init__(

Re: asgiref

2020-04-10 Thread אורי
On Fri, Apr 10, 2020 at 10:11 AM Mike Dewhirst wrote: > On 10/04/2020 4:55 pm, אורי wrote: > > Hi, > > > > What is asgiref and why is it automatically installed when I upgrade > > Django to 3.0 with pip? > > https://docs.djangoproject.com/en/3.0/topics/async/#async-adapter-functions > > Thank you

Re: asgiref

2020-04-10 Thread Mike Dewhirst
On 10/04/2020 4:55 pm, אורי wrote: Hi, What is asgiref and why is it automatically installed when I upgrade Django to 3.0 with pip? https://docs.djangoproject.com/en/3.0/topics/async/#async-adapter-functions What does it do and is it required to be installed in production? אורי u...@speedy