Re: Reach the server

2019-07-16 Thread mohammed habib
Perhaps try this article: https://www.howtogeek.com/122641/how-to-forward-ports-to-a-virtual-machine-and-use-it-as-a-server/ If you are using something like Vagrant it’s easier, you just need to update your vagrantfile with one setting and then run ‘vagrant reload’ Sent from my iPhone > On

Using a 2-dimensional array in a template

2019-07-16 Thread Yves de Champlain
Hi I'm pretty new to Django. I like it a lot but there seems to be no straightforward way to use a 2-dimensional array in a template, something that might look like this : {% for skill in skills %} {{ skill.name }} {% for achievement in achievements %} {{

Re: ModelForm "error_css_class" not getting applied to ValidationErrors raised in model.clean()

2019-07-16 Thread Melvyn Sopacua
On dinsdag 16 juli 2019 03:25:11 CEST Jacob Greene wrote: > Hello! Has anyone dealt with this before? It seems that my forms don't add > the CSS class to errors raised in model.clean() or model.clean_fields() > methods. > > I have a form that looks something like this: > > class

Re: Reach the server

2019-07-16 Thread CHENXIN YANG
Thanks for the help! After running the command Python manage.py runserver 0.0.0.0:8000, I still couldn't reach the server. And could you tell me more details about how to make sure that my port 8000 from the guest virtualbox maps to port 8000 on the host virtualbox? On Tue, Jul 16, 2019 at

Re: Populating django admin inline fields with javascript

2019-07-16 Thread Mario Sassmann
OK I solved the problem. I accidently set the primary keys (hidden fields) when populating the inline forms with javascript. Am Dienstag, 16. Juli 2019 21:49:10 UTC+2 schrieb Mario Sassmann: > > Hi! > > I'm trying to write an importer for populating admin model fields with > existing model

An old problem but I can't find answer => populate() isn't reentrant

2019-07-16 Thread kk domesote
Hi I use IIS to hosting Django web site ! I always meet the below problem!! - log begin - Error occurred while reading WSGI handler: Traceback (most recent call last): File "c:\program_files\anaconda3\lib\site-packages\wfastcgi.py", line 791, in main env, handler =

Re: angular or vue js

2019-07-16 Thread mohamed habib
They both will play well with Django because all you need to do is expose a REST API using something like DjangoRestFramework, and you use Vue/Angular to consume this API and display content to the user. On Tue, Jul 16, 2019 at 11:32 AM Pradeep Singh wrote: > which framework is good with django

django admin page shows not found in production

2019-07-16 Thread Camillus Chinaedu Teteh
Hello guys, I am a newbie in python, I was given a task to make the django admin page for an askbot app, the askbot app has already been in production for awhile, when I visit https://somecompany.askbot.com/admin, I get a page not found error. Can you please point out what could be wrong? This

Re: Reach the server

2019-07-16 Thread mohammed habib
You also need to make sure that your port 8000 from the guest virtualbox maps to port 8000 on your host virtualbox Sent from my iPhone > On 15 Jul 2019, at 23:34, CHENXIN YANG wrote: > > I created the new Django project on a vagrant virtual box, but I had trouble > reaching the server at

Re: Reach the server

2019-07-16 Thread mohammed habib
To expose your server to external hosts try running: Python manage.py runserver 0.0.0.0:8000 Sent from my iPhone > On 15 Jul 2019, at 23:34, CHENXIN YANG wrote: > > I created the new Django project on a vagrant virtual box, but I had trouble > reaching the server at http://127.0.0.1:8000/

Populating django admin inline fields with javascript

2019-07-16 Thread Mario Sassmann
Hi! I'm trying to write an importer for populating admin model fields with existing model data: This is my approach: I modified the admin view for the specific model and added a form including select boxes to choose the existing model and a button to start the import. As I'm using drf for

Re: What's the best way to have app access permissions?

2019-07-16 Thread Jani Tiainen
We use django groups for that. So we give groupnames like ALLOW_SOMETHING and then in code and templates we do check if user has that group or not. ti 16. heinäk. 2019 klo 19.26 Tal kirjoitti: > I know you can have permissions on individual models that control which > users have access to them,

What's the best way to have app access permissions?

2019-07-16 Thread Tal
I know you can have permissions on individual models that control which users have access to them, but I need something for my apps. Ex. If a user logs in, does he have access to the store_app? The forum_app? etc. I have a solution that looks something like this: models.py: class

Custom authentication backend does not get credentials

2019-07-16 Thread Cristhiam Gabriel Fernández
Hi everyone My project uses two authentications ways for different users. Administrator users authenticate themselves with username and password (ModelBackend). Customers authenticate themselves with phonenumber and token (custom authentication backend). My custom backend authentication

Re: E-Mail Client Django

2019-07-16 Thread Jani Tiainen
Hi. Err... if you don't find one code a one? ma 15. heinäk. 2019 klo 23.08 Sebastian Jung kirjoitti: > Hello, > > i want a full complete E-Mail client like https://www.mailpile.is/ but in > django. I need only from mailpile a view with template with email > directories on left side and in rest

Re: Reach the server

2019-07-16 Thread Jani Tiainen
Hi. Did you mapped 8000 port to outside of vagrant box? And did you told runserver to listen all interfaces (0.0.0.0) since by default runserver listens to localhost. In case of vagrant "localhost" interface is within vagrant box itself. ti 16. heinäk. 2019 klo 5.22 CHENXIN YANG kirjoitti: > I

Re: angular or vue js

2019-07-16 Thread Jani Tiainen
Any. Django really don't care about it. There exists also at least react and svelte too... ti 16. heinäk. 2019 klo 13.33 Pradeep Singh kirjoitti: > which framework is good with django angular or vue js please suggest > me best one > > -- > You received this message because you are

Re: ModelForm "error_css_class" not getting applied to ValidationErrors raised in model.clean()

2019-07-16 Thread Jani Tiainen
Full_clean is Django internal method which you should't touch. .clean() method validation errors go to special non-field errors and by quick look it should get correct css class. If you could provide minimal project with suspected faulty behavior (for example in github) it would be easier to see

Re: ModelForm "error_css_class" not getting applied to ValidationErrors raised in model.clean()

2019-07-16 Thread Jacob Greene
Thank you for the reply! And good catch haha, I'm not actually. I editing these by hand so I wasn't posting some confusing telephony terminology. I'm displaying errors in my templates by marking them with that "form_error" css class. They are just red and bold, most errors are shown with the

angular or vue js

2019-07-16 Thread Pradeep Singh
which framework is good with django angular or vue js please suggest me best one -- 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

Re: ModelForm "error_css_class" not getting applied to ValidationErrors raised in model.clean()

2019-07-16 Thread Jani Tiainen
At least you should't call super.clean_fields() in clean() method... Also how are you outputting errors in your template? ti 16. heinäk. 2019 klo 5.22 Jacob Greene kirjoitti: > Hello! Has anyone dealt with this before? It seems that my forms don't add > the CSS class to errors raised in

Re: Create a multitab home page of a blog

2019-07-16 Thread Jani Tiainen
Hi. Well most of the things you describe are not spesific to django but just how you do layout your data with HTML. And yes all can be done with django. Being sensible? That is really subjective matter. ti 16. heinäk. 2019 klo 5.22 Nicolas Huergo kirjoitti: > Hey! > > I'm pretty much new to