I followed the setup instructions for django authopenid application. As far as I can tell it is working properly. However, I cannot see the provider buttons/icons for yahoo, google, etc on the sign in with openID portion. Anyone had this problem? Thanks.
If you are bothered only about getting the images and don't mind looking elsewhere, you can get the buttons from this open source project: openid-selector. See this page for a demo.
turns out my issue had to do with media settings in settings.py. I was plugging 'authopenid' into an existing project. So, I already had settings related to media. To solve it, I just the melded my media structure into the one in the 'authopenid' example that comes in the package.
Related
I'm doing a project for a client using Django and have finally installed it on CPanel.
Everything seems to be working great, but when I try to access the admin panel, the tables group or user has an error because it says it's doing a lot of redirections.
In the admin panel, I just have this:
When I try to register something, it loads the page, like this:
But when I try to access the tables, it shows me an ERR_TOO_MANY_REDIRECTS, as shown in the following picture:
It basically says that it's not working and to try to delete my cookies. I did that, and nothing worked. In the urls.py I only have the admin path so the redirection problem is not from something I miscofigured there.
I haven't modified the installation parameters for settings.py besides the Allowed_Host variable to allow the URL of the page, the database connection using PostgreSQL and its working, and the variables of the static files are also working.
So I'm feeling deadlocked because I can't find an answer to this and I don't believe I'm the first one experiencing this.
EDIT: The only new thing that I found is this and as I said I haven't even created files yet so I don't know what Index is this:
If someone knows anything, please let me know.
everyone:
Recently,I meet a problem when I'm using Django to devlope my site.
In my project, one requirement is to view file online.
That is to say, one can browses files of formats:pdf, jpeg,doc and so on
directly in browsers such as chrome or firefox and so on.
I know this can be done by flash,FlexPaper is one solution. But in django,
not in flash,is there any other solutions? Anyone knows that? If not, I can
only use flexpaper and maybe site can't be accessed via apple devices
Many thanks!!
I think, you can use https://github.com/NetAngels/django-webodt (documentation) with option inline=True:
render_to_response(..., inline=True)
There are plenty of non-flash file browser plugins out there: Elfinder has a Django connector, and you can probably get an integration with CKfinder.
The django packages page also has a list of django file browsers link.
I have a django server set up in development. It is basically the simplest "app store" you can imagine. I can now finally serve up static images using STATIC_URL as the prefix.
I however have failed to be able to enable over the air installation of my .ipa file.
When I click on my link on my iPhone or iPad, I get a 404 error, which leads me to think that the path to my .ipa is incorrect. Except that I think that my path is correct :>
Can anyone please point me to what the magic path needs to be?
Thank you!
Inside my django template, all I do is provide a link to the app like so:
Neither of the following work:
Cool Runner
Cool Runner
Cool Runner
So the third try, links to my plist and it IS found, but when I click on it in mobile Safari on my iPHone it just displays the contents of the pList. I am supposed to link to the pList and not the .ipa, right?
Cool Runner
The fourth try (directly above where I link to the ipa) prompts me to download the ipa, and then mobile Safari offers to let me open the link in Evernote, or a few other apps. Not exactly what I want.
In the exact same template, for sanity checks, I provide a link to an mp3 and an iphone configuration profile, which both DO work (clicking on the iphone configuration profile link does launch the iPhone's settings app and asks me to install the config profile correctly)
cool song
<a href="{{STATIC_URL}}binaries/coolRunner.mobileconfig>Cool Runner Configuration Profile</a>
Could there be a problem with my actual ipa file, as in, maybe it is not provisioned right? I used XCode 4.5 and archived it, and followed the dead simple wizard, distributed it for enterprise/ad-hoc deployment, code-signed it with my identity (I have all the privileges except that I am not the Team Agent, but I am an admin), and filled out the form that requires an App URL (which I said to be http://192.168.1.109:8000/appstore/static/binaries/coolRunner.plist)
Well the one thing I neglected, is the way to do it:
Cool Runner
That works. For others who may come after me, let me explain that when you have STATIC_URL defined at the default /static/ in django's development server, you locate your static files right off the domain name and port number: (e.g., http://192.168.1.109:8000/static/captain_obvious.png)
Please also note that I did NOT have to add a type="application/octet-stream" nor a type="text/xml" either on the development server nor in my tag. I'd seen some posts that said that you need it, although those posts may have been referring to production.
Can anyone help with this strange problem.
I have just installed CF10 developer on Win7 which is using IIS7.5.
Installation went smooth, and can browse .cfm files no problem and connect to datasources no problem .. BUT: even though I can browse all my local cf sites, none of the sites will display images or styles for external .CSS files.
So, I get the site, content from the database, and all the functionality of cfm files being parsed OK, but no styles and no images.
If I browse directly (pasting the filepath in the browser) to one of the images I get a 404 error - file not found - even though the .gif file does indeed exist in the directory.
So, basically, I can run CFM files, and browse a local site built in coldfusion, but none of the images or externally referenced css files will be "found" by the browser/IIS.
Can anyone help?
Thanks in advance if someone can..
Sounds like an issue with those mimetypes, please see the following for information on installing the static content role to IIS and enabling those mimetypes to be served.
No Mime Types Option in IIS 7
Be sure to enable static content in IIS 7.
Had two occurrences of this problem lately.
See here:
http://weblogs.asp.net/anasghanem/archive/2008/05/23/don-t-forget-to-check-quot-static-content-service-quot-in-iis7-installation.aspx
Try restarting the IIS server. Close all browsers and restart.
You need to determine if it is a CF issue or an IIS issue. Try the following:
Check to see if this is an issue with images not being served vs broken paths to the images. There may be CFML code that is creating links to invalid locations.
If the locations are valid then it would be an issue with IIS not server image files.
Also check to see if there is a similar issue with JPEG and PNG files. If JPEGs and PNGs show up, this suggests an IIS issue.
Also try creating a simple HTML page that has an image on it. If it has an image on it, this suggests a CF issue
The contrib admin site of Django is a perfect starting point for simple in-house applications that lots of people use.
I've done a bit of searching and seen the discussions of media and tools for working with and merging static media for the admin site. But it is still pretty fragmented and opaque.
Assume I have a site "mysite" with an application "myapp" that is derived from the admin app.
I would really appreciate an example of relocating mysite and myapp, including the admin app, onto a web server where it is not at the root url.
I think this use case would flush out a lot of the issues and confusion that I see people have.
I think what you want to do is use the FORCE_SCRIPT_NAME = '/path/not/at/root/of/domain' option in your settings.py file. No trailing /.
http://docs.djangoproject.com/en/1.3/ref/settings/#force-script-name
I hope I'm understanding your question right and I hope this helps solve it.
Edit: oops gave link to old docs...updated with new docs version
Edit2: Here is another link describing this here at djangoproject again.