Giter VIP home page Giter VIP logo

chishop's People

Contributors

ask avatar brosner avatar bshi avatar btubbs avatar dcramer avatar hltbra avatar runeh avatar stefanfoulis avatar vandersonmota avatar viniciuschagas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

chishop's Issues

Upload succeeds but no file stored when uploaded from Python 3

I've encountered an issue where I run the distutils 'upload' command from Python 3.3. The command succeeds and with the same output as on Python 2.7 including the all important line:

Server response (200): OK

However, the file doesn't appear in the chishop. I don't experience this problem in the same environment against PyPI, so I suspect chishop. I'm filing this here for now until I can investigate further.

Upload hangs on attempted second file.

Using

commit cf9dcc0
Date: Tue Nov 17 20:34:22 2009 +0100

Install and test locally using the instructions in the readme. Created a single superuser and no modifications to the default settings.py except changing the DATABASE_* settings.

Running the following two commands,

someproject$ python setup.py register -r local sdist upload -r local
someproject$ python setup.py register -r local bdist_egg upload -r local

The first runs successfully and the file shows up in the web UI. The second command hangs. If I then clear and start with a new database, uploading via various methods (bdist, etc) shows similar behavior, the second upload always hangs.

why by default media stuff is matched with "edia/" instead of "media/"?

Serve static pages.

if settings.LOCAL_DEVELOPMENT:
urlpatterns += patterns("django.views",
url(r"%s(?P.*)$" % settings.MEDIA_URL[1:], "static.serve", {
"document_root": settings.MEDIA_ROOT}))

By default MEDIA_URL is "media/". The logic would be clearer if it was used MEDIA_PREFIX, which is by default "/media/", so, mapping to "media/" would be the correct.

django registration requires smtp server?

When I try and register with chishop I get a failure:

Traceback:
File "/home/nferrier/chishop/parts/django/django/core/handlers/base.py" in get_response

  1.             response = callback(request, _callback_args, *_callback_kwargs)
    
    File "/home/nferrier/chishop/eggs/django_registration-0.8_alpha_1-py2.6.egg/registration/views.py" in register
  2.         new_user = backend.register(request, **form.cleaned_data)
    
    File "/home/nferrier/chishop/eggs/django_registration-0.8_alpha_1-py2.6.egg/registration/backends/default/init.py" in register
  3.                                                                 password, site)
    
    File "/home/nferrier/chishop/parts/django/django/db/transaction.py" in _commit_on_success
  4.             res = func(_args, *_kw)
    
    File "/home/nferrier/chishop/eggs/django_registration-0.8_alpha_1-py2.6.egg/registration/models.py" in create_inactive_user
  5.         registration_profile.send_activation_email(site)
    
    File "/home/nferrier/chishop/eggs/django_registration-0.8_alpha_1-py2.6.egg/registration/models.py" in send_activation_email
  6.     self.user.email_user(subject, message, settings.DEFAULT_FROM_EMAIL)
    
    File "/home/nferrier/chishop/parts/django/django/contrib/auth/models.py" in email_user
  7.     send_mail(subject, message, from_email, [self.email])
    
    File "/home/nferrier/chishop/parts/django/django/core/mail.py" in send_mail
  8.                     connection=connection).send()
    
    File "/home/nferrier/chishop/parts/django/django/core/mail.py" in send
  9.     return self.get_connection(fail_silently).send_messages([self])
    
    File "/home/nferrier/chishop/parts/django/django/core/mail.py" in send_messages
  10.         sent = self._send(message)
    
    File "/home/nferrier/chishop/parts/django/django/core/mail.py" in _send
  11.                 email_message.message().as_string())
    
    File "/usr/lib/python2.6/smtplib.py" in sendmail
  12.     self.ehlo_or_helo_if_needed()
    
    File "/usr/lib/python2.6/smtplib.py" in ehlo_or_helo_if_needed
  13.         if not (200 <= self.ehlo()[0] <= 299):
    
    File "/usr/lib/python2.6/smtplib.py" in ehlo
  14.     self.putcmd(self.ehlo_msg, name or self.local_hostname)
    
    File "/usr/lib/python2.6/smtplib.py" in putcmd
  15.     self.send(str)
    
    File "/usr/lib/python2.6/smtplib.py" in send
  16.         raise SMTPServerDisconnected('please run connect() first')
    

Exception Type: SMTPServerDisconnected at /accounts/register/
Exception Value: please run connect() first

<<<<<<

I don't have an SMTP server configured in Django, not sure how to set one up either...

This:

http://code.google.com/p/app-engine-patch/issues/detail?id=211

suggests the problem can be fixed with an option to runserver, but the
runserver chishop builds does not have that option (as far as I can
see).

Maybe other authentication systems would be better anyway since this
will mostly be used for team and personal servers?

Allow for other authentication handlers/middleware.

Django provides a remote user authentication middleware which allows Apache to handle the authentication before it reaches Django. The post handler in chishop doesn't check to see if you are authenticated already, it just tries to authenticate you.

Add WSGIPassAuthorization to docs.

I haven't tried it, but it sounds like you need to enable wsgi to pass
the authorization header to Chishop. This is done in theapacheconfig
with:

   WSGIPassAuthorization On

Distutils and PyPI uses Basic Auth, and without this optionApache
will just swallow the header and handle it by itself.

that solved my problem, please consider to add this info somewhere in
docs.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.