django windows apache tell if apache is working

2018-06-29 Thread thebobbobsled
Hi, I'm new to this group, and also new to Python, and Django. Seems like lots of good info for django on this group. Sorry for long, detailed descriptions, below, but I am stuck trying to verify wamp, apache and django are working as a production server on a Windows 7, 32-bit machine. I am

Re: django.contrib.admin

2018-06-29 Thread carlos
you read de doc https://docs.djangoproject.com/en/2.0/ref/contrib/admin/#django.contrib.admin.ModelAdmin.list_display On Fri, Jun 29, 2018 at 4:43 PM Jim Lamb wrote: > How can I override the list_display to add fields in my admin console for > users? > > -- > You received this message because y

django.contrib.admin

2018-06-29 Thread Jim Lamb
How can I override the list_display to add fields in my admin console for users? -- 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...@google

Re: Django Admin

2018-06-29 Thread Mark Phillips
Teja, First, let me suggest you just copy and paste your models from models.py. People who use Django a lot may find it easier to read the code (because they are familiar with the syntax and layout) than your typed summary of the classes. Second, Django by itself cannot do what you want it to do.

Re: Queryset calculation and then filter/exclude/limit data rendered

2018-06-29 Thread rod termaat
I totally get what you are saying and thanks. I tried a similar strategy. I do qs = Check.objects.all() and then I have to do the calculation as there is no balance in the model so I generate it on the fly in the for loop. My hope was to then filter qs like you show. It works, but my balan

Django Admin

2018-06-29 Thread Teja Yerraballe
Hi Team, I have created 4 models ( class Company, class Department, class Section, class Employee ) Company Model has : CMP1, CMP2, CMP3, CMP4, CMP5(Year is the foreign key in this model) Department Model has : DEP1, DEP2,DEP3,DEP4,DEP5 (Company is the foreign key in this model) Section

how to programmatically get the index name of a model field on a migration of django 1.8

2018-06-29 Thread Fabio C. Barrionuevo da Luz
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 companies. so I need to distribute these improvements via django migration. I'm using

Re: Django split screen

2018-06-29 Thread Gerald Brown
Julio*,* Thanks for the quick reply. I have not worked with templates yet so that will be a new field for me to explore. On Friday, 29 June, 2018 09:41 PM, Julio Biason wrote: Hi Gerald, You can't "split" the screen because Django is simply a way to retrieve data from a database and send

Re: Using React Native

2018-06-29 Thread George Silva
For Django, yes. For React Native and Machine Learning? Not so much. On Fri, Jun 29, 2018 at 10:22 AM musonda makena wrote: > sorry thought i was in the right place where you can ask any question > about Django and etc. was redirected here when i was doing my research on > Django > > On Friday,

Re: NoReverseMatch at / ' homepage' is not a registered namespace

2018-06-29 Thread Nikesh Tandel
"{% url ' homepage:index ' %}" On Fri, Jun 29, 2018 at 2:25 PM Nelson Varela wrote: > You don't have of did not configure the urls.py > there should be an url which points to the view > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To

Re: Django split screen

2018-06-29 Thread Julio Biason
Hi Gerald, You can't "split" the screen because Django is simply a way to retrieve data from a database and send HTML to the browser. You can, however, load the history and create a form and send both to the template, which will display both side by side (or one on to the top of the other, or wha

Django split screen

2018-06-29 Thread Gerald Brown
Has anyone ever heard of a way to split a screen in Django? What my client wants to do is to view a screen with the customers previous history (scrollable but NOT editable) while entering new data for that customer. I think I will need a form for the data entery but I am not sure what I would

Re: NoReverseMatch at / ' homepage' is not a registered namespace

2018-06-29 Thread Nelson Varela
You don't have of did not configure the urls.py there should be an url which points to the view -- 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+unsu

Re: django

2018-06-29 Thread Julio Biason
Hi Musonda, Django, yes; React, not so much. Your question was a bit too vague and seemed more focused on the second. Surely, when you get a better grasp of what Django is and what React is and how they work together and have a question about the first, you can feel free to send the question here

Re: Using React Native

2018-06-29 Thread musonda makena
sorry thought i was in the right place where you can ask any question about Django and etc. was redirected here when i was doing my research on Django On Friday, June 29, 2018 at 1:48:18 PM UTC+2, musonda makena wrote: > > i have just started working on a python based web application a client >

django

2018-06-29 Thread musonda makena
sorry i thought i was in right place. was redirected here when i was researching on Django and react -- 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

Re: Can't access my django runserver

2018-06-29 Thread Mikhailo Keda
show your code -- 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 post to this group, send email to django-users@googl

Re: Using React Native

2018-06-29 Thread George Silva
I don't mean to be disrespectful, but you are asking the wrong questions in the wrong place. That being said, the maturity of machine learning libraries and tools available in Python are far greater than in other languages like PHP. Now React or React Native does not have anything to do with Machi

Re: Isolated virtualenv and mod_wsgi - how do I do this on Apache

2018-06-29 Thread Kunal Grover
You can specify your VirtualEnv using WSGIDaemonProcess: http://modwsgi.readthedocs.io/en/develop/configuration-directives/WSGIPythonPath.html Alternatively, you can use gunicorn to run your server behind Apache: https://docs.djangoproject.com/en/2.0/howto/deployment/wsgi/gunicorn/ My recommendat

Re: Django dev server issue

2018-06-29 Thread saurabhranaupes
open your task manager and stop python process running it and then again 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...@goog

Using React Native

2018-06-29 Thread musonda makena
i have just started working on a python based web application a client suggest to me to use python because they plan in the future to implement some machine learning to their web application. is react native use friendly to machine learning? am coming from a php web production background, so am

Re: Tutorial help Blank Front page

2018-06-29 Thread Simran Jeetkaur
thnku for this it worked for me too... :) On Friday, August 11, 2017 at 11:50:16 AM UTC-7, Александр Христюхин wrote: > > Hi, > > You should open "http://127.0.0.1:8000/polls/"; instead of " > http://127.0.0.1:8000/";. > Take a look at the error Django gives you, all registered URLs are listed

Re: Can't access my django runserver

2018-06-29 Thread Umar Kambala
Thanks for the reply My problem is when I run python manage.py runserver I gets this error: 'APP_DIRS': True, SyntaxError: invalid syntax Am following this tutorial on the django polls section On Jun 27, 2018 12:44 PM, "Joshua Kayode" wrote: I think you need to give more details, we are all rea

Re: Queryset calculation and then filter/exclude/limit data rendered

2018-06-29 Thread Derek
Its not completely clear what you are doing. You need to avoid logic in your template; but you say "excluding data from the the queryset in the for loop which is easy in other languages, but this also seemed to be a no go". That is not the case if your logic is written in the correct way. In

Re: Newbie : Object copy - weird error :-)

2018-06-29 Thread Mickael Barbo
Hello Julio, Ok, I see. 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 2018-06-27 14:56 GMT+02:00 Julio Biason : >

Re: Newbie : Object copy - weird error :-)

2018-06-29 Thread Mickael Barbo
Hi 赖信桃, Sorry for formating problem. Here it is class AbstractDataModel(models.Model): xxx class Meta: abstract = True def __iter__(self): return iter([self.xxx, self.yyy, self.zzz, self.aaa, self.qqq, self.mode_bbb]) class DataModel(AbstractData

Django log error email configuration?

2018-06-29 Thread prateek gupta
Hi All, I am using Django 2.0.6, Python 3.6 and MySql 5.7. For sending an email to the admin user in case of any error, I did following settings in my settings.py file- DEBUG = False # email configurations EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' EMAIL = "" SERVER_EMAIL = ""