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 > WSGIScriptAlias

Re: problem deploying two apps

2016-03-02 Thread frocco
ame 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
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 <far...@gmail.com > > wrote: > >> Hi, >&g

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

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

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

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 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

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

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

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"

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, >

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.g

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

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

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 >

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
admin will > use name1 in dropdown box. > > On Wed, 4 Nov 2015 at 21:50 frocco <far...@gmail.com > wrote: > >> Hello, >> >> I have two existing tables >> table1 has name1 >> >> table2 has name2 >> >> when I edit table2 in admin, I

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

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 webf

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-09-21 Thread frocco
s > > 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, 20

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"

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

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: Invalid HTTP_HOST, can someone explain why I am getting this?

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

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

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

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

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

Deployment problem with google bots

2013-06-22 Thread frocco
Hello I get error messages from time to time because a google bot try's to view a product that no longer exists. How do I prevent this? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails

How do I stopt this bot 66.249.73.7

2013-05-25 Thread frocco
Should I stop this bot at 66.249.73.7 It is causing my search log to fill up quickly. -- 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: Help with robots.txt

2013-05-24 Thread frocco
Thank you On Friday, May 24, 2013 9:16:35 AM UTC-4, Mike Dewhirst wrote: > > On 24/05/2013 10:04pm, frocco wrote: > > Hello, > > > > Can someone give me an example of configuring robots.txt? > > > > I want to block the admin site. > > > > and

Help with robots.txt

2013-05-24 Thread frocco
Hello, Can someone give me an example of configuring robots.txt? I want to block the admin site. and anything else? -- 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

Re: site critique

2013-05-22 Thread frocco
PM, Nigel Legg wrote: >> >> Site is asking for a username and password, so I can't look at it. >> >> Regards, >> Nigel Legg >> 07722 652866 >> http://twitter.com/nigellegg >> http://uk.linkedin.com/in/nigellegg >> >> >> >> On 22

site critique

2013-05-22 Thread frocco
Hi Every one, I have my PHP site up and running that I converted to django. Would you have a look at this production site and let me know your opinions? Current users are very fussy and resist change. http://ntwarehouse.net One problem I

Re: How do I seo in my website?

2013-05-20 Thread frocco
Thank you On Monday, May 20, 2013 10:35:06 AM UTC-4, frocco wrote: > > Hello, > > I notice that my site does not come up when searching in google. > What do I need to do in django to resolve this? > > Thanks > -- You received this message because you are subscribed to th

How do I seo in my website?

2013-05-20 Thread frocco
Hello, I notice that my site does not come up when searching in google. What do I need to do in django to resolve 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 from it,

Re: Help converting from mysql to postgres

2013-05-19 Thread frocco
Thanks, I finished this, by using dump data on one app at a time. I was trying to do the whole project at once. I did run into sequence errors. I followed this. http://tryolabs.com/Blog/2012/02/10/django-migrating-mysql-postgresql/ On Saturday, May 18, 2013 1:23:04 PM UTC-4, frocco wrote

Re: OperationalError: (1040, 'Too many connections')

2013-05-19 Thread frocco
> http://wiki.postgresql.org/wiki/Converting_from_other_Databases_to_PostgreSQL > > суббота, 18 мая 2013 г., 20:00:15 UTC+3 пользователь frocco написал: >> >> I have been looking for an easy way to convert, but nothing works for me. >> I tried dumpdata, loaddata, b

Re: Help converting from mysql to postgres

2013-05-18 Thread frocco
s set to 1 if I restart sequence, last value is set to 8 On Saturday, May 18, 2013 1:23:04 PM UTC-4, frocco wrote: > > Hello > > Here are my steps. > > python manage.py dumpdata --database=legacy > data.json > > python manage.py loaddata data.json --database=default &

Help converting from mysql to postgres

2013-05-18 Thread frocco
Hello Here are my steps. python manage.py dumpdata --database=legacy > data.json python manage.py loaddata data.json --database=default IntegrityError: Problem installing fixture 'data.json': Could not load accounts.UserProfile(pk=17): duplicate key value violates unique constraint

Re: OperationalError: (1040, 'Too many connections')

2013-05-18 Thread frocco
t; use postgreSQL > > пятница, 17 мая 2013 г., 21:24:10 UTC+3 пользователь frocco написал: >> >> Hello, >> >> How can I resolve this in django 1.5? >> >> webfaction allows max 90 connections. >> >> Thanks >> > -- You received this m

Re: Why Postgres over Mysql?

2013-05-17 Thread frocco
Thanks Phillip On Friday, May 17, 2013 2:38:49 PM UTC-4, frocco wrote: > > My site is currently using Mysql, would it benefit me to switch to > Postgres? > > Thanks > > -- You received this message because you are subscribed to the Google Groups "Django users&q

Why Postgres over Mysql?

2013-05-17 Thread frocco
My site is currently using Mysql, would it benefit me to switch to Postgres? 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 from it, send an email to

OperationalError: (1040, 'Too many connections')

2013-05-17 Thread frocco
Hello, How can I resolve this in django 1.5? webfaction allows max 90 connections. 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 from it, send an email to

best way to track flatpages clicked by users?

2013-05-03 Thread frocco
Hello, I am looking for a way to track links clicked on my website, so I can see what is being used. Most pages are flat pages, so our my own design. Thanks Frank -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this

Re: Need good image on the fly resizing

2013-04-23 Thread frocco
What about the cache directory? Should I clear this also? Thanks for the help. On Tuesday, April 23, 2013 12:35:48 PM UTC-4, Richard Jelte wrote: > > > I am not cropping, just re-sizing. > > > Like Kelly said, you'll have to make sure that all of the images are > cropped

Re: Need good image on the fly resizing

2013-04-23 Thread frocco
> I don't understand how the images wouldn't be all the same size. When I've > used sorl, if the image is bigger than the dimensions to which I'm > cropping/resizing, it's always spot-on. > > On Sunday, April 21, 2013 6:35:02 PM UTC-6, frocco wrote: >> >> Can someone poin

Re: Need good image on the fly resizing

2013-04-23 Thread frocco
Memcached did not help with the resize problem of one image. I am using sorl-thumbnail. The other images look fine and uniform. -- 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,

Re: Need good image on the fly resizing

2013-04-22 Thread frocco
I also just realized that I am not using memcached I will try this tonight and see if it helps. On Monday, April 22, 2013 2:33:22 PM UTC-4, frocco wrote: > > I tried sorl-thumbnail and user is complaining that some images are not > resized to same size as others. > > On Monday,

Re: Need good image on the fly resizing

2013-04-22 Thread frocco
/09/install-pil-with-jpeg-support-on-ubuntu-oneiric-64bits/> > .). > > On Sunday, April 21, 2013 6:35:02 PM UTC-6, frocco wrote: >> >> Can someone point me to a good package? >> >> Thanks >> > -- You received this message because you are subscribed to th

Re: IDE to practice django template language

2013-04-21 Thread frocco
PyCharm is what I use and recommend. -- 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

Need good image on the fly resizing

2013-04-21 Thread frocco
Can someone point me to a good package? 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 from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this

Re: django-newsletter, cron job not working

2013-04-17 Thread frocco
d what the message is. > > your_command &> /tmp/broken_cron.log > > Then rig your cron job to run ASAP and read the log. > > > On Wed, Apr 17, 2013 at 2:38 PM, frocco <far...@gmail.com >wrote: > >> Hello, >> >> Can someone give me an

django-newsletter, cron job not working

2013-04-17 Thread frocco
Hello, Can someone give me an example of running a cronjob hourly? I am on webfaction and cannot get this working. I tried @hourly /usr/local/bin/python2.7 ~/webapps/ntw/myproject/manage.py runjob submit I get no email If I SSH in and sunit manually, it works fine -- You received this

Re: CommandError: Unable to serialize database: get_db_prep_value() takes at least 3 arguments (2 given)

2013-04-16 Thread frocco
I have been looking at the django-newsletter, but can see no way to send a newsletter by user group On Tuesday, April 16, 2013 6:04:18 PM UTC-4, frocco wrote: > > Hello, > > I am using django 1.5.1 and trying to dumpdata. > > How can I fix this? > > Thanks > --

Re: CommandError: Unable to serialize database: get_db_prep_value() takes at least 3 arguments (2 given)

2013-04-16 Thread frocco
Yes, I just found out django-campaign is causing the error. There are a few forks of this, not sure what I should do. On Tuesday, April 16, 2013 6:04:18 PM UTC-4, frocco wrote: > > Hello, > > I am using django 1.5.1 and trying to dumpdata. > > How can I fix this? > > Th

Re: CommandError: Unable to serialize database: get_db_prep_value() takes at least 3 arguments (2 given)

2013-04-16 Thread frocco
Thanks Larry, I read this, but not sure how to fix it. On Tuesday, April 16, 2013 6:04:18 PM UTC-4, frocco wrote: > > Hello, > > I am using django 1.5.1 and trying to dumpdata. > > How can I fix this? > > Thanks > -- You received this message because you are subs

Re: CommandError: Unable to serialize database: get_db_prep_value() takes at least 3 arguments (2 given)

2013-04-16 Thread frocco
Sorry, here it is. python manage.py dumpdata > django_data.json On Tuesday, April 16, 2013 6:04:18 PM UTC-4, frocco wrote: > > Hello, > > I am using django 1.5.1 and trying to dumpdata. > > How can I fix this? > > Thanks > -- You received this message because yo

CommandError: Unable to serialize database: get_db_prep_value() takes at least 3 arguments (2 given)

2013-04-16 Thread frocco
Hello, I am using django 1.5.1 and trying to dumpdata. How can I fix 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 from it, send an email to

Re: How do I display image in admin list?

2013-04-15 Thread frocco
Thank you -- 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

Re: need suggestion for wysiwyg with youtube embed support

2013-04-13 Thread frocco
Nevermind, the css default was hiding the iFrame button On Saturday, April 13, 2013 8:06:13 AM UTC-4, frocco wrote: > > I have ckeditor installed, but do not see any youtube support. > Are there any other django editors? > > Thanks > -- You received this message because

need suggestion for wysiwyg with youtube embed support

2013-04-13 Thread frocco
I have ckeditor installed, but do not see any youtube support. Are there any other django editors? 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 from it, send an email to

need help with csv export

2013-04-12 Thread frocco
Hello, I have a php export file that I need to duplicate in django. I am using django csv import Here is the PHP format I want. 3128559,"GOODYEAR","4024064","","","","","","","","","","","16","","","","","" Here is the django output 3128559,'GENERAL','15480',,,'4' I want it to

Re: django-campaign - how to filter by group?

2013-04-11 Thread frocco
Thank you... On Thursday, April 11, 2013 8:50:06 AM UTC-4, arne^ wrote: > > Hi frocco, > > this filter condition works for me: > > { > "groups__name": "A", > "is_active": true > } > > "A" is the name of the Group. This

Re: Can admin list being filtered be remembered

2013-04-09 Thread frocco
I found this snippet. http://djangosnippets.org/snippets/2849/ On Tuesday, April 9, 2013 5:41:25 PM UTC-4, frocco wrote: > > If I set a filter in the admin list, and edit and save a record, the > filter is not remembered. > Cn this be changed? > -- You received this mess

Can admin list being filtered be remembered

2013-04-09 Thread frocco
If I set a filter in the admin list, and edit and save a record, the filter is not remembered. Cn this be changed? -- 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

Can someone help me with this error. No ReverseMatch

2013-04-09 Thread frocco
NoReverseMatch: Reverse for 'narrow_category' with arguments '(9L, u'pro contact', u'', u'', u'')' and keyword arguments '{}' not found. url(r'^narrow_category/(\d+)/(\w*)/(\d*)/(\d*)/(\d*)/$', 'catalog.views.narrow_category', name="narrow_category"), url(r'^narrow_category/(\d+)/(\w+)/$',

Re: How do I display image in admin list?

2013-04-09 Thread frocco
Also, some images could be blank/None On Tuesday, April 9, 2013 7:33:43 AM UTC-4, frocco wrote: > > Hello, > > I have a standard image field in my model, and want to see the images on > the admin list page. > > how do I modify admin.py to do this? > > Thanks > &g

How do I display image in admin list?

2013-04-09 Thread frocco
Hello, I have a standard image field in my model, and want to see the images on the admin list page. how do I modify admin.py to do this? Thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop

Re: urgent - how do I tell django to relax required password?

2013-04-08 Thread frocco
Thanks Resolved On Monday, April 8, 2013 11:18:32 AM UTC-4, larry@gmail.com wrote: > > On Mon, Apr 8, 2013 at 9:02 AM, frocco <far...@gmail.com > > wrote: > > on registration, login django is asking for uppercase and special chars > for > > password. >

urgent - how do I tell django to relax required password?

2013-04-08 Thread frocco
on registration, login django is asking for uppercase and special chars for password. how do I tell django to allow basic passwords? My site is live and I am having issues Thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe

Re: How do I have company display in admin drop down box?

2013-04-07 Thread frocco
Thank you. I tried your first suggestion and it works great. Thanks so much for your help. On Sunday, April 7, 2013 9:22:08 PM UTC-4, Drew Ferguson wrote: > > On Sun, 7 Apr 2013 18:15:32 -0700 (PDT) > frocco <far...@gmail.com > wrote: > > > Thanks Drew, > >

Re: How do I have company display in admin drop down box?

2013-04-07 Thread frocco
Thanks Drew, I am trying your second suggestion. But it is complaining not found for UserProfile On Sunday, April 7, 2013 8:41:46 PM UTC-4, Drew Ferguson wrote: > > On Sun, 7 Apr 2013 17:01:52 -0700 (PDT) > frocco <far...@gmail.com > wrote: > > > I have a mo

Re: How do I have company display in admin drop down box?

2013-04-07 Thread frocco
;user", "category") def __unicode__(self): return self.user.first_name + " " + self.user.last_name On Sunday, April 7, 2013 8:01:52 PM UTC-4, frocco wrote: > > I have a model that references User and on the admin page, it shows the > user name. > I

How do I have company display in admin drop down box?

2013-04-07 Thread frocco
I have a model that references User and on the admin page, it shows the user name. I have the User tied to a UserProfile model that has a field called company. I want the drop down on my Pricing Model to show company, not user. user = models.ForeignKey(User) -- You received this message

django-campaign - how to filter by group?

2013-04-07 Thread frocco
Hello, Anyone using django-campaign that can tell me when adding subscriber list, how I can limit users that are active and in a certain group, like "A" Thank you -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group

Re: Webfaction vs DigitalOcean

2013-04-03 Thread frocco
Very happy with webfaction and their support. -- 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,

Re: how do I specify optional params in url?

2013-03-31 Thread frocco
Ok, I understand and will try and provide more detail in the future. Thanks again On Sunday, March 31, 2013 5:28:54 PM UTC-4, Alexis Roda wrote: > > Al 31/03/13 22:43, En/na frocco ha escrit: > > Thank you for taking the time to help me. > > You're welcome. >

Re: how do I specify optional params in url?

2013-03-31 Thread frocco
Thank you for taking the time to help me. On Sunday, March 31, 2013 1:00:24 PM UTC-4, frocco wrote: > > Hello, > > Here is my current url. > >url(r'^narrow_category/(\d+)/(\w*)/(\d*)/(\d*)/(\d*)/$', > 'catalog.views.narrow_category', name="narrow_category"

Re: how do I specify optional params in url?

2013-03-31 Thread frocco
> > I am kinda lost with url encoding being a newbie in django. I do not see my error. Can you give me an example? 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 from it,

Re: how do I specify optional params in url?

2013-03-31 Thread frocco
url(r'^narrow_category/(\d+)/$', 'catalog.views.narrow_category', name="narrow_category"), url(r'^narrow_category/(\d+)/(\w+)/$', 'catalog.views.narrow_category', name="narrow_category"), url(r'^narrow_category/(\d+)/(\w+)/(\d+)/$', 'catalog.views.narrow_category',

how do I specify optional params in url?

2013-03-31 Thread frocco
Hello, Here is my current url. url(r'^narrow_category/(\d+)/(\w*)/(\d*)/(\d*)/(\d*)/$', 'catalog.views.narrow_category', name="narrow_category"), d+ is required w* can be optional last three d* can be optional This setting is not working. What am I doing wrong? Thanks -- You received

Re: How do I get these field values in my template?

2013-03-31 Thread frocco
Thank you On Sunday, March 31, 2013 10:17:35 AM UTC-4, Alexis Roda wrote: > > Al 31/03/13 15:18, En/na frocco ha escrit: > > cat = Product.objects.values_list('category__image_path','category__id') > > > > outputs; > > (u'category/goodyear logo.jpg', 13)

How do I get these field values in my template?

2013-03-31 Thread frocco
cat = Product.objects.values_list('category__image_path','category__id') outputs; (u'category/goodyear logo.jpg', 13) I tried for c in cat: c.image_path c.id Thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this

Re: Help, ckeditor not rendering in form

2013-03-30 Thread frocco
I figured it out. In my index.html file, I had to add {{ form.media }} On Saturday, March 30, 2013 12:21:52 PM UTC-4, frocco wrote: > > Hello, > > My form is not based on a model, form.value is not showing the editor. > > Thanks for the help. > > class RebateForm

Help, ckeditor not rendering in form

2013-03-30 Thread frocco
Hello, My form is not based on a model, form.value is not showing the editor. Thanks for the help. class RebateForm(forms.Form): item = forms.CharField(max_length=50, required=True) category = forms.ModelChoiceField(queryset=Category.objects.all()) value =

1.5 user abstract question

2013-03-26 Thread frocco
Hello I need a couple of extra fields in my user model Do I have to specify all fields in django user? Is django user still used? -- 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

Re: PostgresSQL or MySql with django?

2013-03-23 Thread frocco
I Just downloaded a product called RazorSQL http://www.razorsql.com This product has conversion from MySql to Postgresql. Works great. On Monday, March 18, 2013 11:30:35 AM UTC-4, frocco wrote: > > Hello, > > What is the recommended database for django? > > I have used MySQL,

Re: PostgresSQL or MySql with django?

2013-03-21 Thread frocco
. For another migration method, I'll also throw > out the option of djang-extensions dumpscript ( > http://pythonhosted.org/django-extensions/dumpscript.html), which > generates the ORM commands to create your database, and can be used for > migration. > > > On Monday, March 18

Re: PostgresSQL or MySql with django?

2013-03-21 Thread frocco
rom:* django...@googlegroups.com [mailto: > django...@googlegroups.com ] *On Behalf Of *frocco > *Sent:* 21 March 2013 13:06 > *To:* django...@googlegroups.com > *Subject:* Re: PostgresSQL or MySql with django? > > > > Has anyone used this? > > > > https://github.com/l

Re: PostgresSQL or MySql with django?

2013-03-21 Thread frocco
Has anyone used this? https://github.com/lanyrd/mysql-postgresql-converter/ I cannot get this working, says cannot find the file On Thursday, March 21, 2013 8:14:04 AM UTC-4, frocco wrote: > > I have not been able to get this to work. > Says no command found. > > I must say, por

Re: PostgresSQL or MySql with django?

2013-03-21 Thread frocco
.com > Subject: Re: PostgresSQL or MySql with django? > > On Wed, Mar 20, 2013 at 1:54 PM, frocco <far...@gmail.com > > wrote: > > Hello, > > > > I know this is not django related, but can someone help me with the > > syntax to port mysql to postgresq

Re: PostgresSQL or MySql with django?

2013-03-20 Thread frocco
Hello, I know this is not django related, but can someone help me with the syntax to port mysql to postgresql? I tried the mysqldump command with the postgresql compatibility option, but I still cannot import the data. Thanks On Monday, March 18, 2013 11:30:35 AM UTC-4, frocco wrote

Re: How can I get around required fields in admin?

2013-03-19 Thread frocco
ok, I am using forms.ModelForm So I would have to redo this as just a form. On Tuesday, March 19, 2013 9:23:31 AM UTC-4, Javier Guerra wrote: > > On Tue, Mar 19, 2013 at 8:13 AM, frocco <far...@gmail.com > > wrote: > > These required fields will not have data un

How can I get around required fields in admin?

2013-03-19 Thread frocco
Hello, I have a user profile attached to user that has several fields for billing info. When a user check's out, these fields are required. However there is one field that I want the admin to change, but it will not save unless the other required fields are filled. These required fields will

Re: How to get ten random records

2013-03-19 Thread frocco
I am doing this. featured = Product.objects.filter(is_featured=True, is_active=True).order_by('?')[:4] On Tuesday, March 19, 2013 12:03:28 AM UTC-4, Mike Dewhirst wrote: > > No really, I want a maximum of ten random records from the database > (Django 1.4, Postgres 9.1). > > > Looking at

Re: PostgresSQL or MySql with django?

2013-03-18 Thread frocco
Thanks, I purchased this book, I was looking for postgresSQL tutorial On Monday, March 18, 2013 12:38:59 PM UTC-4, Lee Hinde wrote: > > > On Mar 18, 2013, at 9:34 AM, frocco <far...@gmail.com > > wrote: > > > Thank you for your feedback. > > Other tha

Re: PostgresSQL or MySql with django?

2013-03-18 Thread frocco
Thank you for your feedback. Other than the docs, is there a good ebook to learn the basics. I just purchased navicat to use. -- 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,

  1   2   3   >