How to use dumpdata?

2013-08-08 Thread frocco
Hello, I am trying to use python manage.py dumpdata > myfile.json It is only working if I specify each app. python dumpdata myapp > myfile.json Is there any wany to dump all apps into one file? Thanks -- You received this message because you are subscribed to the Google Groups "Django users

Re: How to use dumpdata?

2013-08-08 Thread frocco
I found out dumpdata was not working correctly because of an app installed: django-compaign. I commented it out. On Thursday, August 8, 2013 9:27:49 AM UTC-4, frocco wrote: > > Hello, > > I am trying to use > python manage.py dumpdata > myfile.json > > It is only worki

Does django support hmvc?

2015-02-23 Thread frocco
If so, are there any tutorials? -- 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 d

Invalid HTTP_HOST, can someone explain why I am getting this?

2015-03-17 Thread frocco
SuspiciousOperation: Invalid HTTP_HOST header (you may need to set ALLOWED_HOSTS): www.g3suprimentos.com.br I keep getting this error from time to time. Is someone trying to hack my site? Thanks -- You received this message because you are subscribed to the Google Groups "Django users" group

Re: Invalid HTTP_HOST, can someone explain why I am getting this?

2015-03-17 Thread frocco
I am concerned because I have a value in ALLOWED_HOSTS, but it is not this value. On Tuesday, March 17, 2015 at 9:17:15 AM UTC-4, frocco wrote: > > SuspiciousOperation: Invalid HTTP_HOST header (you may need to set > ALLOWED_HOSTS): www.g3suprimentos.com.br > > I keep getting

Re: Invalid HTTP_HOST, can someone explain why I am getting this?

2015-05-13 Thread frocco
they will generally > try every possible backdoor and exploit that they know of, all at once. > > Yours, > Russ Magee %-) > > On Tue, Mar 17, 2015 at 11:45 PM, frocco > > wrote: > >> I am concerned because I have a value in ALLOWED_HOSTS, but it is not >> this

Re: Invalid HTTP_HOST, can someone explain why I am getting this?

2015-05-15 Thread frocco
The problem is I do not know how to debug this issue. On Tuesday, March 17, 2015 at 9:17:15 AM UTC-4, frocco wrote: > > SuspiciousOperation: Invalid HTTP_HOST header (you may need to set > ALLOWED_HOSTS): www.g3suprimentos.com.br > > I keep getting this error from time to time.

Re: django 1.8 customize site title

2015-09-10 Thread frocco
Thank you for sharing this. On Monday, May 4, 2015 at 12:46:08 PM UTC-4, André Luiz wrote: > > You can do it in in urls.py for example[1] > > [1]: https://gist.github.com/dvl/0bed149bee4556b32d7a > > 2015-05-02 5:55 GMT-03:00 drakkan >: > >> Hi, >> >> I would like to customize django 1.8 site titl

Re: Invalid HTTP_HOST, can someone explain why I am getting this?

2015-09-21 Thread frocco
I am still getting this invalid host from time to time. Does this mean that someone is trying to hack my site? www.g3suprimentos.com.br is not anything I own. For now, I am just ignoring this. Thanks -- You received this message because you are subscribed to the Google Groups "Django users" g

Re: Invalid HTTP_HOST, can someone explain why I am getting this?

2015-09-21 Thread frocco
gt; > where the ‘Host:’ HTTP header is not set or set to something other > > than what is accepted by your site. Most likely a buggy client. I get > > that all the time, I just ignore it. > > > > Cheers > > > > François > > > >> On Sep 21

Re: Invalid HTTP_HOST, can someone explain why I am getting this?

2015-10-21 Thread frocco
I spoke with webfaction and they advised I change apache2 config to Listen 127.0.0.1:29627 instead of Listen 29627 On Monday, September 21, 2015 at 7:46:49 PM UTC-4, frocco wrote: > > I am using webfaction and django 1.5 > > Is this something webfaction and resolve? > > On Mo

Re: Invalid HTTP_HOST, can someone explain why I am getting this?

2015-10-24 Thread frocco
Did not solve problem. They pointed me to this fix. http://stackoverflow.com/questions/15238506/djangos-suspiciousoperation-invalid-http-host-header/19534738#19534738 Just wanted to share. On Wednesday, October 21, 2015 at 8:08:55 PM UTC-4, frocco wrote: > > I spoke with webfaction an

How do I relate two tables using field name instead of id?

2015-11-04 Thread frocco
Hello, I have two existing tables table1 has name1 table2 has name2 when I edit table2 in admin, I want a dropdownbox that shows values from table1 using name1 both fields are character I cannot change the design, porting from msaccess thanks -- You received this message because you are su

Re: How do I relate two tables using field name instead of id?

2015-11-05 Thread frocco
admin will > use name1 in dropdown box. > > On Wed, 4 Nov 2015 at 21:50 frocco > wrote: > >> Hello, >> >> I have two existing tables >> table1 has name1 >> >> table2 has name2 >> >> when I edit table2 in admin, I want a dropdow

Re: How do I relate two tables using field name instead of id?

2015-11-05 Thread frocco
Thanks, I will look into adding id If I just do this, clinician = models.ForeignKey(Clinician) I get clinician_id does not exist In my related table I have def __unicode__(self): return self.clinicianname On Wednesday, November 4, 2015 at 11:19:40 AM UTC-5, frocco wrote: > > Hello,

Re: How do I relate two tables using field name instead of id?

2015-11-05 Thread frocco
Thank you On Wednesday, November 4, 2015 at 11:19:40 AM UTC-5, frocco wrote: > > Hello, > > I have two existing tables > table1 has name1 > > table2 has name2 > > when I edit table2 in admin, I want a dropdownbox that shows values from > table1 using name1 >

How can I limit records based on user group in admin?

2015-11-09 Thread frocco
Hi, I want to deploy an admin app that only allows records with company=A to users in group A and allows records with company=B to users in group B Is this possible? Thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from

how to filter request.user.groups.all()

2015-11-09 Thread frocco
Hello, request.user.groups.all() returns: [, ] z = request.user.groups.all() I am trying to limit records based on: mytable.filter(company__in=z) What am I doing wrong? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe fro

Re: how to filter request.user.groups.all()

2015-11-09 Thread frocco
I was stuck on the syntax. This seems to be working. return qs.filter(company__in=list(request.user.groups.all())) On Monday, November 9, 2015 at 1:46:19 PM UTC-5, frocco wrote: > > Hello, > > request.user.groups.all() returns: > > [, ] > > > z = request.user.grou

Re: How can I limit records based on user group in admin?

2015-11-09 Thread frocco
I solved this using def get_queryset(self, request): qs = super(TrackingAdmin, self).get_queryset(request) return qs.filter(company__in=list(request.user.groups.all())) *Sorry for the duplicate post* On Monday, November 9, 2015 at 11:28:50 AM UTC-5, frocco wrote: > > Hi, >

How do I add permissions in admin for proxy model?

2015-11-09 Thread frocco
I have class qry485Missing(Tracking): class Meta: proxy = True permissions = ( ("qry485Missing_display", "May display information"), ("qry485Missing_edit", "May edit information"), ) verbose_name = "485 Missing" verbose_name_plur

How do I server my app in apache in subdirectory?

2015-11-10 Thread frocco
Hello, In httpd.conf this works WSGIScriptAlias / C:/MAMP/htdocs/django/vnatracking/vnatracking/wsgi.py however if I change it to WSGIScriptAlias /mysite C:/MAMP/htdocs/django/vnatracking/vnatracking/wsgi.py it fails Instead of localhost, I want localhost/mysite Thanks -- You received t

Re: How do I add permissions in admin for proxy model?

2015-11-10 Thread frocco
Just an update. This is now working in django 1.8.6 On Monday, November 9, 2015 at 3:31:35 PM UTC-5, frocco wrote: > > I have > > class qry485Missing(Tracking): > class Meta: > proxy = True > permissions = ( > ("qry485Missing_displ

Re: How do I server my app in apache in subdirectory?

2015-11-10 Thread frocco
I get a 404 error WSGIScriptAlias /mysite C:/MAMP/htdocs/django/vnatracking/vnatracking/wsgi.py > -- 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: How do I server my app in apache in subdirectory?

2015-11-11 Thread frocco
Looks like it is working now. I tried localhost/mysite (which failed) this works localhost/mysite/admin On Tuesday, November 10, 2015 at 3:42:07 PM UTC-5, frocco wrote: > > I get a 404 error > > WSGIScriptAlias /mysite > C:/MAMP/htdocs/django/vnatracking/vnatracking/wsgi.py

Re: How do I add permissions in admin for proxy model?

2015-11-11 Thread frocco
This is still not working. On Tuesday, November 10, 2015 at 11:36:39 AM UTC-5, frocco wrote: > > Just an update. > This is now working in django 1.8.6 > > On Monday, November 9, 2015 at 3:31:35 PM UTC-5, frocco wrote: >> >> I have >> >> class qry

django-tinymce not rendering in IE11

2016-02-24 Thread frocco
Hello, Works fine in Chrome or Firefox. Does not render using IE11. did pip install django-tinymce Can someone help me with this? Thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails

problem deploying two apps

2016-03-01 Thread frocco
Hi, I followed this https://docs.djangoproject.com/en/1.9/howto/deployment/wsgi/modwsgi/ First app works fine, if I deploy the second app, the settings conflict and images are not rendered. [code] Alias /static /var/www/django/track/static Require all granted Require all g

Re: problem deploying two apps

2016-03-02 Thread frocco
That is correct, sorry for my wording. This is two separate projects that need to run on the same server. On Tuesday, March 1, 2016 at 6:17:33 PM UTC-5, James Schneider wrote: > > On Tue, Mar 1, 2016 at 8:56 AM, frocco > > wrote: > >> Hi, >> >> I followed this

Re: problem deploying two apps

2016-03-02 Thread frocco
On Wednesday, March 2, 2016 at 8:59:05 AM UTC-5, frocco wrote: > > That is correct, sorry for my wording. This is two separate projects that > need to run on the same server. > > On Tuesday, March 1, 2016 at 6:17:33 PM UTC-5, James Schneider wrote: >> >> On Tue, Mar 1,

Re: problem deploying two apps

2016-03-02 Thread frocco
I changed the second project to use STATIC_URL = *'/static1/' and the apache conf to **ALIAS /static1/* *and the images now show* On Wednesday, March 2, 2016 at 9:02:40 AM UTC-5, frocco wrote: > > From your link, it looks like I am using the WSGIDaemonProcess and > WSGISc

<    1   2   3