Re: How to add domain from GoDaddy to Heroku

2020-07-01 Thread Micah Beckman
responding. > On Jun 30, 2020, at 3:18 AM, Akinfolarin Stephen > wrote: > > at what point where you stuck can you share may be i can be of help > > On Tue, Jun 30, 2020 at 12:16 PM John McClain <mailto:jmcclain0...@gmail.com>> wrote: > I was able to do so Micah > &g

Re: How to add domain from GoDaddy to Heroku

2020-06-29 Thread Micah Beckman
I'm having the exact same issue. The helpline folks weren't able to sort it out either. On Monday, June 22, 2020 at 4:44:51 PM UTC-4, sunday honesty wrote: > > Has anyone here added a custom domain from GoDaddy to Heroku? > > I have not been able to configure my DNS correctly after following ton

Am I using static files "wrong"?

2012-10-04 Thread Micah Carrick
econdly, I've heard that we should be using the static template tag and not the STATIC_URL context variable. I see the advantages of using the template tag, but, it's not wrong to use STATIC_URL right? It's not deprecated or anything? Cheers, - Micah -- You received this message be

Re: When is a good time to use db_index? Rule of thumb?

2011-09-15 Thread Micah Carrick
As an oversimplification.. any time you will be looking up a record based on a field, then you want an index on that (or those) fields. If you're finding a row based on a slug, you want to index that slug field. A good tool is to use the Django debug toolbar. When you load a page you can take a lo

Re: refreshing a page loaded via POST

2011-09-14 Thread Micah Carrick
After you successfully process a POST request, you can use a redirect to send the user back to the orginal page. On Wed, Sep 14, 2011 at 4:24 AM, Tom Evans wrote: > On Wed, Sep 14, 2011 at 8:12 AM, mohammed safeer.mtp > wrote: > > if a user hits “Refresh” on a page that was loaded via POST, tha

Using gedit for django development

2011-09-12 Thread Micah Carrick
I've written a blog post on using gedit, the default text editor in GNOME, as a Django IDE. If you're a Linux user and you've never considered using gedit for development then this may be an interesting read for you. http://www.micahcarrick.com/gedit-as-a-django-ide-for-linux.html -- You receive

Use of threading.local() ... what is the risk?

2011-09-10 Thread Micah Carrick
I have read https://code.djangoproject.com/wiki/CookBookThreadlocalsAndUser and numerous other discussions about the use of threading.local() yet I still see it being employed in various projects. I have recently implemented a referral system in which the use of threading.local() makes the app ver

Django Projects in Gedit

2011-09-07 Thread Micah Carrick
For those of you working in GNOME 3 on Linux, I just put a new plugin up on GitHub for managing django projects from within Gedit. I haven't done much testing yet, so watch that repo for commits over the next few weeks while I'm working on a large Django project. https://github.com/Quixotix/gedit-

Re: Payment Gateways

2011-04-01 Thread Micah Carrick
No problem. ;) On Fri, Apr 1, 2011 at 4:17 AM, Venkatraman S wrote: > > On Wed, Mar 30, 2011 at 12:19 AM, Micah Carrick wrote: > >> I have used Authorize.Net for years and don't have a single complaint. >> For Python/Django interfacing to Authorize.Net, Quantam, or

Re: DjangoCon US 2011

2011-03-31 Thread Micah Carrick
I was wondering about that too seeing as how I live in Portland. On Thu, Mar 31, 2011 at 11:49 AM, Vinicius Mendes wrote: > Hi, I am planing to go to DjangoCon US 2011 announced in this blog post: > http://www.djangoproject.com/weblog/2010/nov/22/djangocon-us-2011/ but > it's an old post and

Re: about url tag

2011-03-31 Thread Micah Carrick
You have created a "Named URL pattern". Check out: http://docs.djangoproject.com/en/dev/topics/http/urls/#naming-url-patterns On Thu, Mar 31, 2011 at 9:50 AM, Lic. José M. Rodriguez Bacallao < jmr...@gmail.com> wrote: > well, I don't know if this is ok, but I solved the problem adding a > name='h

Re: staticfile app question

2011-03-31 Thread Micah Carrick
I had to look up "grok". Guess I'm out of the loop. Anyway, one other pitfall with using absolute URLs in CSS is that you can break SSL (https) when you have common CSS for both the SSL and non-SSL pages. So watch out for that. IMO, relative URLs are preferable in external stylesheets. In fact, th

Re: How to send emails?

2011-03-30 Thread Micah Carrick
You can setup gmail in your settings.py DEFAULT_FROM_EMAIL = 'your-email@your-domain' EMAIL_USE_TLS = True EMAIL_HOST = 'smtp.gmail.com' EMAIL_PORT = 587 EMAIL_HOST_USER = 'your-gmail-usern...@gmail.com' EMAIL_HOST_PASSWORD = 'your-gmail-password' And you can use the email_user() method of the mo

How to hire a freelance Django developer

2011-03-29 Thread Micah Carrick
Hey folks, Let me start by saying: Please don't email me your resume--this is not a job listing. That being said, I do need to hire python/django developers and system admins from time to time to help me out with projects or take something off my plate. Is there a good *free* resource to browse f

Re: Payment Gateways

2011-03-29 Thread Micah Carrick
I have used Authorize.Net for years and don't have a single complaint. For Python/Django interfacing to Authorize.Net, Quantam, or PsiGate I use quix.pay, which I also wrote: http://pypi.python.org/pypi/quix.pay/ In testing quix.pay, I found that the Quantam gateway in authorize.net emulation mode

Re: Read-only fields and complex relationships in admin

2011-03-27 Thread Micah Carrick
Thank you Jacob. That's actually the answer I was hoping for. On Fri, Mar 25, 2011 at 8:48 PM, Jacob Kaplan-Moss wrote: > On Fri, Mar 25, 2011 at 6:39 PM, Micah Carrick > wrote: > > I have an application which handles a typical "checkout" process for an > >

Read-only fields and complex relationships in admin

2011-03-25 Thread Micah Carrick
I have an application which handles a typical "checkout" process for an e-commerce website. Orders from online customers end up in several models (order, billing/shipping address, line items, gateway data, shipments, etc.). An administrator will have to be able to (a) create new orders manually fro

Decoupling shopping cart from checkout

2011-03-16 Thread Micah Carrick
I have a Django app for a shopping cart, and another for checkout (checkout form, payment gateway, order processing). I would really like for these to be completely decoupled but am having a hard time coming up with a solution that gives me a warm fuzzy feeling. Here is a simplification: Checkout

Re: Can I sort a related model reference in a template?

2011-03-12 Thread Micah Carrick
Yeash. Don't know how I missed that. Thanks! On Sat, Mar 12, 2011 at 5:27 AM, Shawn Milochik wrote: > You can put a sort order in the model's meta info. That way you'll always > have a default sort. > > -- > You received this message because you are subscribed to the Google Groups > "Django user

Can I sort a related model reference in a template?

2011-03-12 Thread Micah Carrick
If I have a Product model which has a one-to-many relationship with ProductImage model... I can get the images in the template using product.productimage_set.all, however, is there any way to sort that or will I instead have to query the product images in the view? -- *Green Tackle* - *Envir

Re: Generate a unique username for django.contrib.auth

2011-01-12 Thread Micah Carrick
UUID, or generate a random 30-character string, the > odds of a collision is quite low. > > On Jan 12, 2011, at 1:11 PM, Micah Carrick wrote: > > > I've got my site's authentication working with and email and password > only--no username (thanks to Shawn Milochik for hel

Generate a unique username for django.contrib.auth

2011-01-12 Thread Micah Carrick
I've got my site's authentication working with and email and password only--no username (thanks to Shawn Milochik for helping me with that). However, I still need to put in a username to make the User model happy. I was hoping to have "user" as a prefix and then some unique number. I cannot simply

Re: Email and activation key in django.contrib.auth

2011-01-12 Thread Micah Carrick
group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- Micah Carrick, Founde

Re: Email and activation key in django.contrib.auth

2011-01-12 Thread Micah Carrick
go-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- Micah Carrick, Founder *Green Tackle* - *Environme

Re: Email and activation key in django.contrib.auth

2011-01-12 Thread Micah Carrick
> To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- Micah Carrick, Fo

Email and activation key in django.contrib.auth

2011-01-11 Thread Micah Carrick
w class methods or something along those lines. Any help would be much appreciated. Thanks! -- Micah Carrick, Founder *Green Tackle* - *Environmentally Friendly Fishing Tackle* www.GreenTackle.com <http://www.greentackle.com> Email: mi...@greentackle.com Phone: 971.

Re: A Model to store links to other models

2010-11-22 Thread Micah Carrick
return self.text class Meta(): db_table = 'link_object' class LinkGroupInline(admin.TabularInline): model = LinkObject class LinkGroupAdmin(admin.ModelAdmin): inlines = [ LinkGroupInline ] admin.site.register(LinkGroup, LinkGroupAdmin) On Sat, Nov 20, 2010 at 5:

Re: A Model to store links to other models

2010-11-20 Thread Micah Carrick
I had not seen the generic relationships and ContentType. I'm going to play with that a bit. Thanks everybody! 2010/11/20 Łukasz Rekucki > On 20 November 2010 02:51, Micah Carrick wrote: > > I'm having trouble coming up with a pretty solution to a seemingly simple > >

A Model to store links to other models

2010-11-19 Thread Micah Carrick
I'm having trouble coming up with a pretty solution to a seemingly simple task. I'm relatively new to Django. I want to allow the end user to control various lists of links on the site used for navigation. The admin should allow the creation of "link groups" which have a collection of "links". The

Filtering a List

2010-07-13 Thread Micah
Example: http://dpaste.com/217886/ Line 6 is what I have a question about. Should I use javascript to deal with that? If so, can the javascript access the django boolean? Is there a way for Django to make runtime changes like this (filter / unfilter checkbox or button)? How would I go about thi

Question on how to update an existing record when using ModelForm

2009-11-22 Thread Micah Vivion
Greetings, I have a question on how to update an existing row in my database when one of the fields is my primary key. I am using ModelForm and Django-Piston - my main goal here is to have RESTful Post send to my webservice. I am able to have initial Posts be sent correctly (i.e. that Primary k

Re: Two projects, one admin, filebrowser

2009-04-14 Thread Micah Ransdell
the files over. Micah On Tue, Apr 14, 2009 at 5:56 PM, shacker wrote: > > We're building an intranet and a public site that share a lot of data > but without shared views. Therefore we're building them as two > distinct Django projects connecting to a single shared databa

Re: pagination problem with "Next" and saving results as a dictionary

2009-03-12 Thread Micah Ransdell
n the method of your form. Your second method of checking if query is valid then inserting it into the href looks fine, you just need to change which method you are accessing it in your view. Micah On Thu, Mar 12, 2009 at 1:16 PM, Jesse wrote: > > Hello Micah, > > I tried this in the

Re: pagination problem with "Next" and saving results as a dictionary

2009-03-11 Thread Micah Ransdell
j.has_next %} next {% endif %} Micah On Wed, Mar 11, 2009 at 12:51 PM, Jesse wrote: > > The following code is for a search on q and attaches tuples from the > search on another model. The search results are appended together to > create the final data results "list". &

Re: how to use django-profiles?

2009-03-10 Thread Micah Ransdell
Viktor, Try capitalizing UserProfile so that it is 'membership.UserProfile' instead of all lowercase. That has worked for me in the past. Micah On Tue, Mar 10, 2009 at 5:03 PM, Viktor Nagy wrote: > > Hi, > > I just can't figure out how to use django-profiles. I