Re: Run Any Python Project

2021-08-20 Thread Rana Zain
Traceback (most recent call last):
  File 
"C:\Users\iamra\AppData\Local\Programs\Python\Python39\lib\site-packages\django\core\management\base.py",
 
line 354, in run_from_argv
self.execute(*args, **cmd_options)
  File 
"C:\Users\iamra\AppData\Local\Programs\Python\Python39\lib\site-packages\django\core\management\commands\runserver.py",
 
line 61, in execute
super().execute(*args, **options)
  File 
"C:\Users\iamra\AppData\Local\Programs\Python\Python39\lib\site-packages\django\core\management\base.py",
 
line 398, in execute
output = self.handle(*args, **options)
  File 
"C:\Users\iamra\AppData\Local\Programs\Python\Python39\lib\site-packages\django\core\management\commands\runserver.py",
 
line 68, in handle
if not settings.DEBUG and not settings.ALLOWED_HOSTS:
  File 
"C:\Users\iamra\AppData\Local\Programs\Python\Python39\lib\site-packages\django\conf\__init__.py",
 
line 82, in __getattr__
self._setup(name)
  File 
"C:\Users\iamra\AppData\Local\Programs\Python\Python39\lib\site-packages\django\conf\__init__.py",
 
line 69, in _setup
self._wrapped = Settings(settings_module)
  File 
"C:\Users\iamra\AppData\Local\Programs\Python\Python39\lib\site-packages\django\conf\__init__.py",
 
line 168, in __init__
self.SETTINGS_MODULE = setting; mod = 
importlib.import_module(self.SETTINGS_MODULE)
  File 
"C:\Users\iamra\AppData\Local\Programs\Python\Python39\lib\importlib\__init__.py",
 
line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
  File "", line 1030, in _gcd_import
  File "", line 1007, in _find_and_load
  File "", line 984, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'gettext_noop'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "E:\Git\django-crm\manage.py", line 15, in 
execute_from_command_line(sys.argv)
  File 
"C:\Users\iamra\AppData\Local\Programs\Python\Python39\lib\site-packages\django\core\management\__init__.py",
 
line 419, in execute_from_command_line
utility.execute()
  File 
"C:\Users\iamra\AppData\Local\Programs\Python\Python39\lib\site-packages\django\core\management\__init__.py",
 
line 413, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
  File 
"C:\Users\iamra\AppData\Local\Programs\Python\Python39\lib\site-packages\django\core\management\base.py",
 
line 367, in run_from_argv
connections.close_all()
  File 
"C:\Users\iamra\AppData\Local\Programs\Python\Python39\lib\site-packages\django\db\utils.py",
 
line 208, in close_all
for alias in self:
  File 
"C:\Users\iamra\AppData\Local\Programs\Python\Python39\lib\site-packages\django\utils\connection.py",
 
line 73, in __iter__
return iter(self.settings)
  File 
"C:\Users\iamra\AppData\Local\Programs\Python\Python39\lib\site-packages\django\utils\functional.py",
 
line 48, in __get__
res = instance.__dict__[self.name] = self.func(instance)
  File 
"C:\Users\iamra\AppData\Local\Programs\Python\Python39\lib\site-packages\django\utils\connection.py",
 
line 45, in settings
self._settings = self.configure_settings(self._settings)
  File 
"C:\Users\iamra\AppData\Local\Programs\Python\Python39\lib\site-packages\django\db\utils.py",
 
line 144, in configure_settings
databases = super().configure_settings(databases)
  File 
"C:\Users\iamra\AppData\Local\Programs\Python\Python39\lib\site-packages\django\utils\connection.py",
 
line 50, in configure_settings
settings = getattr(django_settings, self.settings_name)
  File 
"C:\Users\iamra\AppData\Local\Programs\Python\Python39\lib\site-packages\django\conf\__init__.py",
 
line 82, in __getattr__
self._setup(name)
  File 
"C:\Users\iamra\AppData\Local\Programs\Python\Python39\lib\site-packages\django\conf\__init__.py",
 
line 69, in _setup
self._wrapped = Settings(settings_module)
  File 
"C:\Users\iamra\AppData\Local\Programs\Python\Python39\lib\site-packages\django\conf\__init__.py",
 
line 168, in __init__
self.SETTINGS_MODULE = setting; mod = 
importlib.import_module(self.SETTINGS_MODULE)
  File 
"C:\Users\iamra\AppData\Local\Programs\Python\Python39\lib\importlib\__init__.py",
 
line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
  File "", line 1030, in _gcd_import
  File "", line 1007, in _find_and_load
  File "", line 984, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'gettext_noop'




Also faces this error everytime I am running my code

On Friday, August 20, 2021 at 6:08:45 PM UTC+5 Rana Zain wrote:

> Hi,
> Can anybody help me to know how we can run any python project from Git and 
> any other sources.
>

Run Any Python Project

2021-08-20 Thread Rana Zain
Hi,
Can anybody help me to know how we can run any python project from Git and 
any other sources.

 

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/ea64e75f-2232-40c3-99af-581deeb323c8n%40googlegroups.com.


Re: Git Hub Project

2021-08-12 Thread Rana Zain
Okay. I am checking. Thanks Everyone.

On Wednesday, August 11, 2021 at 9:54:32 PM UTC+5 Kasper Laudrup wrote:

> On 11/08/2021 18.19, Rana Zain wrote:
> > Thanks everyone for your kind support. I am working hard on python and
> > Django. Earlier I learn python then I started working on Django. I hope
> > you will support me in future as now. 
> > 
>
> It will be much easier to support you if you actually respond to advice
> you've been given.
>
> Sooner or later people will loose their patience and stop helping you at
> all.
>
> I'm quite sure you won't understand this advice as well, but it's worth
> trying.
>
> Kind regards,
>
> Kasper Laudrup
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/8c97a023-332f-4d0f-ab2b-380f46f5d481n%40googlegroups.com.


Re: Git Hub Project

2021-08-11 Thread Rana Zain
I will very happy if you will help in running this code.

On Wednesday, August 11, 2021 at 9:19:04 PM UTC+5 Rana Zain wrote:

> Thanks everyone for your kind support. I am working hard on python and 
> Django. Earlier I learn python then I started working on Django. I hope you 
> will support me in future as now. 
>
> On Wednesday, August 11, 2021 at 1:42:51 AM UTC+5 Kasper Laudrup wrote:
>
>> On 10/08/2021 17.53, pediah wanmi wrote:
>> > Well truth is, django is beginner friend, I love and live python, but
>> > django is a one step at a time programming platform. No need to hurry.
>> > Just like u never can know when exactly u grow to become a big man so is
>> > learning django, u never can tell when u get it all
>> >
>>
>> Indeed.
>>
>> Django is very easy to get started with and has some of the best
>> documentation of any project I've seen.
>>
>> That being said, I personally think it might be a good idea to at least
>> get some basics of Python before starting your first Django project.
>>
>> It seems like Rana Zain is trying to modify the Django sources without
>> even knowing the basics of Python which is probably not going to get him
>> very far.
>>
>> Then again, only he knows what he's doing and he hasn't really revealed
>> that, so we can only guess.
>>
>> In short, it sounds like we agree :-)
>>
>> Kind regards,
>>
>> Kasper Laudrup
>>
>>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/a1aff136-4dfe-450f-a83d-67194e3f24e8n%40googlegroups.com.


Re: Git Hub Project

2021-08-11 Thread Rana Zain
Thanks everyone for your kind support. I am working hard on python and 
Django. Earlier I learn python then I started working on Django. I hope you 
will support me in future as now. 

On Wednesday, August 11, 2021 at 1:42:51 AM UTC+5 Kasper Laudrup wrote:

> On 10/08/2021 17.53, pediah wanmi wrote:
> > Well truth is, django is beginner friend, I love and live python, but
> > django is a one step at a time programming platform. No need to hurry.
> > Just like u never can know when exactly u grow to become a big man so is
> > learning django, u never can tell when u get it all
> >
>
> Indeed.
>
> Django is very easy to get started with and has some of the best
> documentation of any project I've seen.
>
> That being said, I personally think it might be a good idea to at least
> get some basics of Python before starting your first Django project.
>
> It seems like Rana Zain is trying to modify the Django sources without
> even knowing the basics of Python which is probably not going to get him
> very far.
>
> Then again, only he knows what he's doing and he hasn't really revealed
> that, so we can only guess.
>
> In short, it sounds like we agree :-)
>
> Kind regards,
>
> Kasper Laudrup
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/8065eff5-7cc3-4f4b-a4fa-645b2f583602n%40googlegroups.com.


Re: Git Hub Project

2021-08-10 Thread Rana Zain
I take trainings for python and work on it. Now I am a beginner on Django 
want to run Git Hub Clone this proejct. 

On Tuesday, August 10, 2021 at 7:41:13 PM UTC+5 Kasper Laudrup wrote:

> On 10/08/2021 14.03, Rana Zain wrote:
> > Thank you very much for your kind words. I am facing this errors :
> >
>
> You are more than welcome, but it seems like you didn't really read what
> I wrote.
>
> From your last question and your follow up question here, it seems like
> you should really learn the basics of programming in Python before
> trying to create a Django project.
>
> There are many things to learn and you have to start somewhere.
>
> Did you find any useful Python tutorials for beginners?
>
> Kind regards,
>
> Kasper Laudrup
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/1dcbc906-2c8c-490c-b7a5-5318f8713f2dn%40googlegroups.com.


Re: Git Hub Project

2021-08-10 Thread Rana Zain
@Ryan i tired many times tabs and spaces. But not work.

On Tuesday, August 10, 2021 at 6:50:41 PM UTC+5 Ryan Nowakowski wrote:

> You might have mixed tabs and spaces. PEP8 standard is 4 spaces per level 
> of indentation, IIRC.
>
>
> On August 9, 2021 7:24:56 AM CDT, Rana Zain  wrote:
>>
>>
>> Thank you so much everyone. It's work.
>>
>> I have another problem. I am facing this issue in Pycharm .  I tried 
>> spaces & tabs.
>>
>> Error is :"Unindent does not match any outer indentation level""
>> On Thursday, August 5, 2021 at 11:15:27 AM UTC+5 satyajit...@gmail.com 
>> wrote:
>>
>>> what exactly you're trying to do?
>>>
>>> On Wed, Aug 4, 2021 at 6:41 PM Rana Zain  wrote:
>>>
>>>> Hi,
>>>> Can anybody help me in running git clone django Project?
>>>>
>>>> -- 
>>>>
>>> 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...@googlegroups.com.
>>>> To view this discussion on the web visit 
>>>> https://groups.google.com/d/msgid/django-users/425c8297-2097-4952-b2ac-3fa299ff6011n%40googlegroups.com
>>>>  
>>>> <https://groups.google.com/d/msgid/django-users/425c8297-2097-4952-b2ac-3fa299ff6011n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/580eb0db-31b7-4fab-b887-db69ed47e0ban%40googlegroups.com.


Re: Git Hub Project

2021-08-10 Thread Rana Zain
:
warnings.warn(
PASSWORD_RESET_TIMEOUT_DAYS_DEPRECATED_MSG,
RemovedInDjango40Warning,
stacklevel=2,
)
return self.__getattr__('PASSWORD_RESET_TIMEOUT_DAYS')

@property
def static_url (self):
return self._add_script_prefix(self.__getattr__('STATIC_URL'))

@property
def media_url (self):
return self._add_script_prefix\
(self.__getattr__('MEDIA_URL'))

class Settings:
def __init__(self, settings_module):
# update this dict from global settings (but only for ALL_CAPS settings)
for setting in dir(global_settings):
if setting.isupper():
setattr(self, setting, getattr(global_settings, setting))

# store the settings module in case someone later cares
self.SETTINGS_MODULE = settings_module

mod = importlib.import_module(self.SETTINGS_MODULE)

tuple_settings = (
"INSTALLED_APPS",
"TEMPLATE_DIRS",
"LOCALE_PATHS",
)
self._explicit_settings = set()
for setting in dir(mod):
if setting.isupper():
setting_value = getattr(mod, setting)

if (setting in tuple_settings and
not isinstance(setting_value, (list, tuple))):
raise ImproperlyConfigured("The %s setting must be a list or a tuple. " % 
setting)
setattr(self, setting, setting_value)
self._explicit_settings.add(setting)

if not self.SECRET_KEY:
raise ImproperlyConfigured("The SECRET_KEY setting must not be empty.")

if self.is_overridden('PASSWORD_RESET_TIMEOUT_DAYS'):
if self.is_overridden('PASSWORD_RESET_TIMEOUT'):
raise ImproperlyConfigured(
'PASSWORD_RESET_TIMEOUT_DAYS/PASSWORD_RESET_TIMEOUT are '
'mutually exclusive.'
)
setattr(self, 'PASSWORD_RESET_TIMEOUT', self.PASSWORD_RESET_TIMEOUT_DAYS * 
60 * 60 * 24)
warnings.warn(PASSWORD_RESET_TIMEOUT_DAYS_DEPRECATED_MSG, 
RemovedInDjango40Warning)

if self.is_overridden('DEFAULT_HASHING_ALGORITHM'):
warnings.warn(DEFAULT_HASHING_ALGORITHM_DEPRECATED_MSG, 
RemovedInDjango40Warning)

if hasattr(time, 'tzset') and self.TIME_ZONE:
# When we can, attempt to validate the timezone. If we can't find
# this file, no check happens and it's harmless.
zoneinfo_root = Path('/usr/share/zoneinfo')
zone_info_file = zoneinfo_root.joinpath(*self.TIME_ZONE.split('/'))
if zoneinfo_root.exists() and not zone_info_file.exists():
raise ValueError("Incorrect timezone setting: %s" % self.TIME_ZONE)
# Move the time zone info into os.environ. See ticket #2315 for why
# we don't do this unconditionally (breaks Windows).
os.environ['TZ'] = self.TIME_ZONE
time.tzset()

def is_overridden(self, setting):
return setting in self._explicit_settings

def __repr__(self):
return '<%(cls)s "%(settings_module)s">' % {
'cls': self.__class__.__name__,
'settings_module': self.SETTINGS_MODULE,
}


class UserSettingsHolder:
"""Holder for user configured settings."""
# SETTINGS_MODULE doesn't make much sense in the manually configured
# (standalone) case.
SETTINGS_MODULE = None

def __init__(self, default_settings):
"""
Requests for configuration variables not in this class are satisfied
from the module specified in default_settings (if possible).
"""
self.__dict__['_deleted'] = set()
self.default_settings = default_settings

def __getattr__(self, name):
if not name.isupper() or name in self._deleted:
raise AttributeError
return getattr(self.default_settings, name)

def __setattr__(self, name, value):
self._deleted.discard(name)
if name == 'PASSWORD_RESET_TIMEOUT_DAYS':
setattr(self, 'PASSWORD_RESET_TIMEOUT', value * 60 * 60 * 24)
warnings.warn(PASSWORD_RESET_TIMEOUT_DAYS_DEPRECATED_MSG, 
RemovedInDjango40Warning)
if name == 'DEFAULT_HASHING_ALGORITHM':
warnings.warn(DEFAULT_HASHING_ALGORITHM_DEPRECATED_MSG, 
RemovedInDjango40Warning)
super().__setattr__(name, value)

def __delattr__(self, name):
self._deleted.add(name)
if hasattr(self, name):
super().__delattr__(name)

def __dir__(self):
return sorted(
s for s in [*self.__dict__, *dir(self.default_settings)]
if s not in self._deleted
)

def is_overridden(self, setting):
deleted = (setting in self._deleted)
set_locally = (setting in self.__dict__)
set_on_default = getattr(self.default_settings, 'is_overridden', lambda s: 
False)(setting)
return deleted or set_locally or set_on_default

def __repr__(self):
return '<%(cls)s>' % {
'cls': self.__class__.__name__,
}


settings = LazySettings()

Here is the Code now facing many issues 
I cloned this project from Git and want to run it.
On Tuesday, August 10, 2021 at 5:16:02 PM UTC+5 bscho...@schollnick.net 
wrote:

> Thank you very much for your kind words. I am facing this errors :
>
> > ',' or ')' expected
> > Unexpected indent
> > Statement expected, found Py:DEDENT
>
> for the last 2,3 days. Kindly help me out.
>
>
> You need 

Re: Git Hub Project

2021-08-10 Thread Rana Zain
Thank you very much for your kind words. I am facing this errors :

> ',' or ')' expected
> Unexpected indent
> Statement expected, found Py:DEDENT

for the last 2,3 days. Kindly help me out.


On Monday, August 9, 2021 at 5:43:06 PM UTC+5 Kasper Laudrup wrote:

> On 09/08/2021 14.24, Rana Zain wrote:
> > 
> > Thank you so much everyone. It's work.
> > 
> > I have another problem. I am facing this issue in Pycharm .  I tried
> > spaces & tabs.
> > 
> > Error is :"Unindent does not match any outer indentation level""
>
> Python uses indentation for scoping unlike most other programming
> languages. That is very important and basic knowledge and doesn't have
> anything to do with Pycharm.
>
> I would suggest you start by finding a tutorial, book or similar on
> Python for absolute beginners and then take it slowly from there.
>
> A quick search showed this:
>
> https://python.land/python-tutorial
>
> But others might have some better suggestions.
>
> Good luck on learning Python. It's a nice and very forgiving language so
> you'll make progress very quickly, but like with most other things, you
> do need some amount of patience to get started.
>
> Kind regards,
>
> Kasper Laudrup
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/94bde1d2-ba4e-480e-8ef6-f71f1626a88en%40googlegroups.com.


Re: Git Hub Project

2021-08-09 Thread Rana Zain

Thank you so much everyone. It's work.

I have another problem. I am facing this issue in Pycharm .  I tried spaces 
& tabs.

Error is :"Unindent does not match any outer indentation level""
On Thursday, August 5, 2021 at 11:15:27 AM UTC+5 satyajit...@gmail.com 
wrote:

> what exactly you're trying to do?
>
> On Wed, Aug 4, 2021 at 6:41 PM Rana Zain  wrote:
>
>> Hi,
>> Can anybody help me in running git clone django Project?
>>
>> -- 
>>
> 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...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/425c8297-2097-4952-b2ac-3fa299ff6011n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/django-users/425c8297-2097-4952-b2ac-3fa299ff6011n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/d99ee9ab-38f4-4ca7-9d9c-2a2301916b2fn%40googlegroups.com.


Git Hub Project

2021-08-04 Thread Rana Zain
Hi,
Can anybody help me in running git clone django Project?

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/425c8297-2097-4952-b2ac-3fa299ff6011n%40googlegroups.com.


Re: AttributeError: module 'polls.views' has no attribute 'index'

2021-07-26 Thread Zain
Had the same issue. 

Solved, make sure you run each edited python file during the tutorial. 
I guess it needs to update. All I know is this fixed the issue.

On Monday, April 19, 2021 at 2:07:34 AM UTC+10 avi.me...@gmail.com wrote:

> I followed the same tutorial on 17th April 2021 with Python 3.9.2 and 
> Django 3.2 and have exactly the same problems as mentioned above.
>
> path('', views.index, name='index'),
>
> AttributeError: module 'polls.views' has no attribute 'index'
>
> any help on how can I debug this? I am a django noob
>
> On Wednesday, 19 April 2017 at 16:31:59 UTC+2 lce...@gmail.com wrote:
>
>> Thanks for your reploy.
>>
>> Actually I followed the tutorial exactly.
>>
>> My polls/views.py has:
>>
>> from django.http import HttpResponse
>>
>>
>> def index(request):
>> return HttpResponse("Hello, world. You're at the polls index.")
>>
>> My polls/urls.py has:
>>
>> from django.conf.urls import url
>>
>> from . import views
>>
>> urlpatterns = [
>> url(r'^$', views.index, name='index'),
>> ]
>>
>>
>> On Wednesday, 19 April 2017 15:43:57 UTC+2, m712 - Developer wrote:
>>
>>> You didn't give us enough info, but I am thinking that you don't have an 
>>> index() function in your polls/views.py. Start the tutorial from the 
>>> beginning and follow it closely.
>>> On Apr 19, 2017 4:17 PM, Billy Lin  wrote:
>>>
>>> I'm following the getting started tutorial 01 and running into issues 
>>> after creating the polls app. Can someone please help?
>>>
>>> I'm using Python 3.6.1 and Django 1.11.
>>>
>>> Here's the detailed trace:
>>>
>>> Performing system checks...
>>> Unhandled exception in thread started by >> check_errors..wrapper at 0x04222810>
>>> Traceback (most recent call last):
>>>   File 
>>> "C:\Users\cephalin\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\utils\autoreload.py",
>>>  
>>> line
>>> 227, in wrapper
>>> fn(*args, **kwargs)
>>>   File 
>>> "C:\Users\cephalin\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\core\management\commands\ru
>>> nserver.py", line 125, in inner_run
>>> self.check(display_num_errors=True)
>>>   File 
>>> "C:\Users\cephalin\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\core\management\base.py",
>>>  
>>> l
>>> ine 359, in check
>>> include_deployment_checks=include_deployment_checks,
>>>   File 
>>> "C:\Users\cephalin\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\core\management\base.py",
>>>  
>>> l
>>> ine 346, in _run_checks
>>> return checks.run_checks(**kwargs)
>>>   File 
>>> "C:\Users\cephalin\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\core\checks\registry.py",
>>>  
>>> l
>>> ine 81, in run_checks
>>> new_errors = check(app_configs=app_configs)
>>>   File 
>>> "C:\Users\cephalin\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\core\checks\urls.py",
>>>  
>>> line
>>> 16, in check_url_config
>>> return check_resolver(resolver)
>>>   File 
>>> "C:\Users\cephalin\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\core\checks\urls.py",
>>>  
>>> line
>>> 26, in check_resolver
>>> return check_method()
>>>   File 
>>> "C:\Users\cephalin\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\urls\resolvers.py",
>>>  
>>> line 25
>>> 4, in check
>>> for pattern in self.url_patterns:
>>>   File 
>>> "C:\Users\cephalin\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\utils\functional.py",
>>>  
>>> line
>>> 35, in __get__
>>> res = instance.__dict__[self.name] = self.func(instance)
>>>   File 
>>> "C:\Users\cephalin\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\urls\resolvers.py",
>>>  
>>> line 40
>>> 5, in url_patterns
>>> patterns = getattr(self.urlconf_module, "urlpatterns", 
>>> self.urlconf_module)
>>>   File 
>>> "C:\Users\cephalin\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\utils\functional.py",
>>>  
>>> line
>>> 35, in __get__
>>> res = instance.__dict__[self.name] = self.func(instance)
>>>   File 
>>> "C:\Users\cephalin\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\urls\resolvers.py",
>>>  
>>> line 39
>>> 8, in urlconf_module
>>> return import_module(self.urlconf_name)
>>>   File 
>>> "C:\Users\cephalin\AppData\Local\Programs\Python\Python36-32\lib\importlib\__init__.py",
>>>  
>>> line 126, in import_modu
>>> le
>>> return _bootstrap._gcd_import(name[level:], package, level)
>>>   File "", line 978, in _gcd_import
>>>   File "", line 961, in _find_and_load
>>>   File "", line 950, in 
>>> _find_and_load_unlocked
>>>   File "", line 655, in _load_unlocked
>>>   File "", line 678, in exec_module
>>>   File "", line 205, in 
>>> _call_with_frames_removed
>>>   File "C:\Users\cephalin\Repos\django\mysite\mysite\urls.py", line 20, 
>>> in 
>>> url(r'^polls/', include('polls.urls')),
>>>   File 
>>> "C:\Users\cephalin\AppData\Local\Programs\Python\Python3

Django rest api connect with android mobile app

2020-02-25 Thread Zain Mehar
please anyone tell me how i connect my Django rest API with my Andriod 
mobile application please anyone tells? 

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/e942a95b-18bd-470d-9354-8682d5eb8ff5%40googlegroups.com.


how to run jupyter notebook code in django

2019-04-02 Thread zain malik
Hi,

I am zain and i am implementing popularity based recommendations system on 
django.

The code of recommendation system is implemented on Jupyter notebook and it 
is using

*pandas dataframes and some numPy* *functions*. Now i am confused about how 
to run that code in my django Product model and how to create view for that 
code.

Kindly help me out!

-- 
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 django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/13592629-3823-484d-9667-a2f8133cec46%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Dynamodb backed application

2017-09-01 Thread Zain Ali
i am wondering how to make a web app with nosql db as pynamodb is orm 
support i didnot get any good todo app example for dynamodb app or using 
other library let me know i am newbie to django want to make app backed by 
dynamodb 

-- 
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 django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/645a3bb0-af9d-4c4e-9840-2ec5cef6887e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Best Django host

2009-05-19 Thread Zain Memon
http://djangofriendly.com/

On Tue, May 19, 2009 at 6:21 PM, LeonTheCleaner wrote:

>
> Hi,
>
> I currently use dreamhost, but the installation process is very slow.
> Is it me or this process is overly complicated? All I want is to
> install an already written django project but to do that it's like I
> have to write the app myself.
>
> I read about dreamhost being not the best, but it's listed at #2 on
> django website. Should I use that for my site or buy one of the
> packages that features 1-click install, like: http://djangohosting.ch?
>
> I would appreciate if someone can help me out.
>
>
>
>
> Thanks.
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@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
-~--~~~~--~~--~--~---



Re: Django version

2009-05-19 Thread Zain Memon
import djangodjango.get_version()

On Tue, May 19, 2009 at 10:47 AM, VidrSan  wrote:

>
> How can I see django version on my web-server? Just python's code,
> beaucause I can't find any information on hosting
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@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
-~--~~~~--~~--~--~---



Re: Introducing FirePy, a FirePHP server library for Django

2009-05-05 Thread Zain Memon
What's the difference between your project and FirePython?
http://firepython.binaryage.com/

On Tue, May 5, 2009 at 10:18 PM, Sung-Jin Hong wrote:

> Hello everyone!
>
> I've made a simple FirePHP server library for Django.
>
> For those who are not familiar with FirePHP, It's a Firebug extension that
> enables server logs to be shown at the Firebug console. You can find more
> information here ( http://www.firephp.org/ ). It's mainly for PHP
> language, but the protocol is platform independent. There are server
> librarys for Ruby on Rails and so on. So I've made a Django version of the
> server-side FirePHP. And thus, FirePy!
>
> Have a look. It has a simple documentation and screenshot ready for you.
>
> http://code.google.com/p/firepy/
>
> And those who are interested in development of this project, feel free to
> send patches!
>
> Thanks.
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@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
-~--~~~~--~~--~--~---



Re: How to add a customized validation/authorization to django.contrib.admin

2009-05-05 Thread Zain Memon
You're going to want to override a couple of ModelAdmin methods. Take a look
at this blog post.
http://www.b-list.org/weblog/2008/dec/24/admin/

On Tue, May 5, 2009 at 5:19 AM, topcoder...@gmail.com  wrote:

>
> Hello everyone,
>
> In my application, I heavily used django.contrib.admin to manage my
> data, especially add/edit them. Now I need a quite customized
> validation feature added into it. Certain user may have no authority
> to edit some fields of some instances of a Model, and whether or not
> she/he can edit it depending on her/his user name, current system time
> and/or the field she/he attempts to edit.
>
> When user who has no authority attempts to edit something, she/he
> should received a user-friendly error message just like she/he entered
> invalid email address or leaved required field empty.
>
> How to hook this customized validation/authorization feature into
> admin site?
>
> Thanks a lot.
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@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
-~--~~~~--~~--~--~---



Re: tinymce not displaying on admin template

2009-05-04 Thread Zain Memon
Your TINYMCE_JS_URL is .../site_media/js/tiny_mce/tiny_mce.js while the file
apparently is at .../site_media/tiny_mce/tiny_mce.js.
Zain

On Mon, May 4, 2009 at 9:59 AM, Jesse  wrote:

>
> Hello,
>
> I'm trying to implement django-cms.  The CMS pages in admin display,
> but not with the editing someone without html knowledge will be able
> to use.  I see no tinymce options. I've placed tinymce in several
> places hoping somehow it would display where I need it.
>
> Using this statement in a firefox browser:
> http://127.0.0.1:8000/site_media/tiny_mce/tiny_mce.js
>
> I see this displayed:
> var tinymce=
>
> {majorVersion:"3",minorVersion:"2.3",releaseDate:"2009-04-23",_init:function
> (){var o=this,k=document, etc.
>
> My setting.py file:
> MEDIA_ROOT = 'c:/django/myprograms/site_media/'
> MEDIA_URL = 'http://127.0.0.1:8000/site_media/'
>
> TINYMCE_JS_URL = 'http://127.0.0.1:8000/site_media/js/tiny_mce/
> tiny_mce.js'
> TINYMCE_JS_ROOT = 'c:/django/myprograms/site_media/js/tiny_mce'
> TINYMCE_DEFAULT_CONFIG = {
>'plugins': "table,spellchecker,paste,searchreplace",
>'theme': "advanced",
>'cleanup_on_startup': True,
>'custom_undo_redo_levels': 10,
> }
>
> TINYMCE_SPELLCHECKER = False
> TINYMCE_COMPRESSOR = False
> TINYMCE_FILEBROWSER = True
>
> CMS_USE_TINYMCE = True
>
> INSTALLED_APPS = (
>'cms',
>'tinymce',
>'filebrowser',
> )
>
> I''ve not found any download files with the uppercase TinyMce, but
> only tinymce
> or tiny_mce.
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@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
-~--~~~~--~~--~--~---



Re: Ajax and https

2009-05-01 Thread Zain Memon
You cannot make cross-site requests in Javascript, for security reasons.
See: https://developer.mozilla.org/en/Same_origin_policy_for_JavaScript

This has nothing to do with Django, however, so if you need further
information, you should take your question to the JQuery mailing lists.

Zain

On Thu, Apr 30, 2009 at 7:01 AM, shi shaozhong wrote:

>
> Hi, there.  I will be interested as well.
>
> Regards,
>
> David
>
> 2009/4/30 ruben.django :
> >
> > Hi,
> >
> > i've got a template with a jquey ajax call. Before, the web service
> > (Apache) always redirects to a http direction and the ajax call worked
> > perfectly, but from now, it redirects to a secure https direction and
> > the ajax call has stopped working. The browser shows me the next
> > message:
> >
> > Security error: the content in https://mysite/foo/34 can't load data
> > from http://mysite/foo/34.
> >
> > Can anybody help me?
> >
> > Thanks.
> >
> > >
> >
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@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
-~--~~~~--~~--~--~---



Re: New site: www.portaltotheuniverse.org

2009-04-23 Thread Zain Memon
Cool! Mind sharing the names of any open source django apps you used?

On Thu, Apr 23, 2009 at 6:09 AM, larsholm  wrote:

>
> Dear all,
>
> Allow me to advertise for our new Django based site:
> http://www.portaltotheuniverse.org
>
> Keeping up-to-date with cutting-edge astronomy and space science
> breakthroughs has just become that much easier, thanks to the Portal
> To The Universe, the latest Cornerstone project of the International
> Year of Astronomy 2009 (IYA2009).
>
> On the tech side it basically boils down to a content-specific feed
> aggregator with a number of important add-ons:
> - human moderation to feature high quality content.
> - embargoed press releases for journalists with login (works in much
> the same way as when journalists can be invited to watch new movies a
> day before everybody else).
> - the RSS crawler is fast and updated very often to keep up-to-date
> with the news development during the day.
>
> This is our third major Django-based website we have done here at ESO
> - European Southern Observatory (located in Munich, Germany), and we
> naturally have more websites with astronomy content in the pipeline.
>
> Thanks for viewing!
>
> Lars Holm Nielsen 
> ESO - European Southern Observatory
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@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
-~--~~~~--~~--~--~---



Re: Hierarchy menu system

2009-04-23 Thread Zain Memon
It sounds like you're trying to build a CMS app; check out django-cms if you
haven't already. http://django-cms.org/

On Wed, Apr 22, 2009 at 9:50 AM, tdelam  wrote:

>
> What's the best way to build a hierarchy menu system? e.g: Page items
> can have sub-pages and sub-pages can have sub-sub-pages and so on
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@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
-~--~~~~--~~--~--~---



Re: graph tools

2009-04-23 Thread Zain Memon
You might find it easier to go with a Javascript library to render the
graphs instead; for example, the excellent flot plugin for jQuery.
http://code.google.com/p/flot/

On Thu, Apr 23, 2009 at 12:10 AM, Lars Stavholm  wrote:

>
> Hi All,
>
> looking to produce graphs within a django application,
> preferably within the admin site.
>
> django-graphs might be a contender, but it seems to be
> not fully completed yet. Anyone using it?
>
> Other django graph app's?
>
> Any advice appreciated
> /Lars Stavholm
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@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
-~--~~~~--~~--~--~---



Re: Only show field in admin for superuser

2009-04-23 Thread Zain Memon
In that case, try overriding ModelAdmin.get_fieldsets(); add the owner field
to self.fieldset if request.user.is_superuser, and then call
super.get_fieldsets().
For reference, you can find get_fieldsets() (and other beautiful things you
can override) in django/contrib/admin/options.py.

On Thu, Apr 23, 2009 at 3:32 AM, phoebebright wrote:

>
> Zain,
>
> Thanks for responding.
> I would really prefer not to show the field at all - I don't want
> ordinary users being able to see a list of all the users on the
> system!
>
> Phoebe
>
> On Apr 23, 9:42 am, Zain Memon  wrote:
> > You can override the ModelAdmin.save_model() method to check if the
> current
> > user has permission to change the owner.
> > Take a look athttp://www.b-list.org/weblog/2008/dec/24/admin/to see an
> > example.
> >
> > On Thu, Apr 23, 2009 at 1:37 AM, phoebebright  >wrote:
> >
> >
> >
> >
> >
> > > I have a model with an owner field that I only want a superuser to be
> > > able to change.  I can't change the list of fields in form in admin.py
> > > because there is not request.user to test at that time.  If I were
> > > using custom templates I could put it in the template, but would
> > > rather stick to the standard admin.
> >
> > > If I add the field by default, Is there somewhere I could remove the
> > > field as it's being loaded if the requesting user is not a superuser?
> > > Any ideas gratefully received!
> >
> > > THIS DOES NOT WORK:
> >
> > >if request.user.is_superuser:
> > > fieldsets = [
> > > (None,   {'fields':
> > > ['tourism','community','cat','name','is_live','paid','owner']}),
> > > ('Contact', {'fields':
> > > ['phone','mobile','fax','email','web','address']}),
> > > ('Details', {'fields':
> > > ['description','pic1','pic2','pic3','pic4']}),
> > > ]
> > >else:
> > > fieldsets = [
> > > (None,   {'fields':
> > > ['tourism','community','cat','name','is_live','paid','owner']}),
> > > ('Contact', {'fields':
> > > ['phone','mobile','fax','email','web','address']}),
> > > ('Details', {'fields':
> > > ['description','pic1','pic2','pic3','pic4']}),
> > > ]
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@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
-~--~~~~--~~--~--~---



Re: Only show field in admin for superuser

2009-04-23 Thread Zain Memon
You can override the ModelAdmin.save_model() method to check if the current
user has permission to change the owner.
Take a look at http://www.b-list.org/weblog/2008/dec/24/admin/ to see an
example.

On Thu, Apr 23, 2009 at 1:37 AM, phoebebright wrote:

>
> I have a model with an owner field that I only want a superuser to be
> able to change.  I can't change the list of fields in form in admin.py
> because there is not request.user to test at that time.  If I were
> using custom templates I could put it in the template, but would
> rather stick to the standard admin.
>
> If I add the field by default, Is there somewhere I could remove the
> field as it's being loaded if the requesting user is not a superuser?
> Any ideas gratefully received!
>
>
> THIS DOES NOT WORK:
>
>if request.user.is_superuser:
> fieldsets = [
> (None,   {'fields':
> ['tourism','community','cat','name','is_live','paid','owner']}),
> ('Contact', {'fields':
> ['phone','mobile','fax','email','web','address']}),
> ('Details', {'fields':
> ['description','pic1','pic2','pic3','pic4']}),
> ]
>else:
> fieldsets = [
> (None,   {'fields':
> ['tourism','community','cat','name','is_live','paid','owner']}),
> ('Contact', {'fields':
> ['phone','mobile','fax','email','web','address']}),
> ('Details', {'fields':
> ['description','pic1','pic2','pic3','pic4']}),
> ]
>
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@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
-~--~~~~--~~--~--~---



Re: Problem in tutorial

2009-04-23 Thread Zain Memon
Your SQL is wrong. Look up the correct syntax for changing a column in the
MySQL docs.

On Thu, Apr 23, 2009 at 12:54 AM, 83nini <83n...@gmail.com> wrote:

>
> Hi guys,
>
> I'm working on django tutorial that is in "www.djangobook.com", I'm in
> chapter6 where i'm in the process of creating an admin Web site.
> The site is created and it works just perfectly, the thing is I'm
> trying to make some date and numeric fields optional, so I modified
> the models.py folder and added the "null=True" statement as follows:
>
> publication_date = models.DateField(blank=True, null=True)
>
> now according to what's written in the book, it is my responsibility
> to ALTER TABLE statement whenever such a change is made in the
> models.py file, so I did the following:
>  1. called python manage.py dbshell from the command line
>  2. when i got the dbshell "mysql>", i wrote the following statement
> ALTER TABLE books_book ALTER COLUMN publication_date DROP NOT
> NULL;
>
> I'm getting "ALTER is not an internal command, external command,
> program or commandfile"
>
> WHY???
>
> thanks for explaining,
> cheers,
> Lina
>
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@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
-~--~~~~--~~--~--~---



Re: Django turns?

2009-04-22 Thread Zain Memon
django-schedule is another option you can look at.
http://github.com/thauber/django-schedule/tree/master


On Wed, Apr 22, 2009 at 1:39 PM, Sergio Durand  wrote:

>
> Hi,
>
> Visit swingtime project:
> http://code.google.com/p/django-swingtime/
> Maybe it's what you are looking for...
>
> --
> Sergio Durand
>
> Juanjo Conti escreveu:
> > Hi!
> >
> > I wonder know if there is a Django app suitable to handle turns as the
> > ones given by a doctor to his pacients.
> > Thanks in advance,
> >
> > --
> > Juanjo Conti
>
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@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
-~--~~~~--~~--~--~---



Re: basic-profile install error

2009-04-22 Thread Zain Memon
Does the file /home/username/webapps/sms/sms/basic/__init__.py exist? If
not, create it. That file is required for Python to treat the directory as
containing packages.
Zain

On Wed, Apr 22, 2009 at 12:23 AM, Denhuang  wrote:

>
> The project setting files are here /home/username/webapps/sms/sms/
> settings.py
>
> On Apr 21, 10:13 pm, zayatzz  wrote:
> > Shouldnt there be another sms in your pythonpath since there are 2 in
> > file path?
> >
> > Which folder holds your project settings?
> > /home/username/webapps/sms
> > or
> > /home/username/webapps/sms/sms ?
> >
> > Alan
> >
> > On Apr 22, 6:47 am, Denhuang  wrote:
> >
> > > I am getting an error when I type:
> >
> > > [unix]$ python manage.py syncdb
> > > Error: No module named basic
> >
> > > The files are under
> > > /home/username/webapps/sms/sms/basic/profiles/
> >
> > > PythonPath '/home/username/webapps/sms'
> >
> > > INSTALLED_APPS = (
> > > 'django.contrib.auth',
> > > 'django.contrib.contenttypes',
> > > 'django.contrib.sessions',
> > > 'django.contrib.sites',
> > > 'django.contrib.admin',
> > > 'sms.registration',
> > > 'sms.basic.profiles',
> > > )
> >
> > > Anyone have any idea what is wrong? Probably something stupid in my
> > > setup.
> > > Dennis
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@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
-~--~~~~--~~--~--~---



Re: Django admin page hangs in django server - where is web server error log?

2009-04-11 Thread Zain Memon
Since no messages are shown in the log, the connection is most likely being
blocked somewhere upstream. Check that you've allowed port 8001 through any
firewalls or routers you have set up.
Zain

On Sat, Apr 11, 2009 at 5:23 PM, adelein  wrote:

>
> This is the server output:
>
>
> [r...@bellatrix djangoblog]# python manage.py runserver
> 93.186.171.54:8001
> Validating models...
> 0 errors found
>
> Django version 1.1 beta 1 SVN-10504, using settings
> 'djangoblog.settings'
> Development server is running at http://93.186.171.54:8001/
> Quit the server with CONTROL-C.
>
>
> So no errors. Yet admin page is blank as you can see if you go to
> http://93.186.171.54:8001/admin.
>
> On Apr 11, 5:21 pm, adelein  wrote:
> > Yes, and I see no errors there. Still the admin page does not load at
> > all. I cant find any similar problems through google.
> >
> > On Apr 11, 5:17 pm, Malcolm Tredinnick 
> > wrote:
> >
> > > On Sat, 2009-04-11 at 17:09 -0700, adelein wrote:
> >
> > > > Hi,
> >
> > > > Sorry, I meant to say urls.py of course. So, given I did put the code
> > > > in the right file, the problem still remains.
> >
> > > If you're following the tutorial, then you will be running the
> > > development server. So all "server log" style output will be printed to
> > > the terminal that you used to start the server.
> >
> > > Regards,
> > > Malcolm
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@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
-~--~~~~--~~--~--~---