Re: Problems with dumpdata/loaddata

2016-04-07 Thread jorrit787
Opening the JSON file in Notepad++ certainly gives some insight... It says 
it's encoded in USC-2 LE BOM. Converting it to UTF-8 with BOM in Notepad++ 
solves the problem.

Question though, why does dumpdata create files with an encoding that can 
not be used out of the box with loaddata?

-- 
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/b3f4fbbf-bcad-4376-8ed1-aa476b8c8a88%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Django 1.9 Woes

2016-04-07 Thread SillyInventor
I am trying to transition to Django 1.9 from my 1.8 app. Simply creating 
the migrations for old databases is fine, but when I try to create a fresh 
database with migrate I get:

"Error creating new content types. Please make sure contenttypes " 
RuntimeError: Error creating new content types. Please make sure 
contenttypes is migrated before trying to migrate apps individually. 

I have tested this a fair bit, and I can get it to build fresh if I: remove 
my site from URLs, migrate, add it back, and migrate again... but that's 
super janky, and not the clean build I am looking for. It seems to be 
caused because in Django/core/management/base.py line 398 -> self.check() 
is called before the migration occurs, and the lack of a database throws an 
error and quits before setting up the database (catch 22). I have tested 
this by commenting this out, and that will also allow it to build the 
database.

Anyone have any recommendations for what a good way to fix this is or what 
the underlying problem might be in my app?

-- 
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/a95b030c-f73c-49e6-98d4-be33abc99490%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Pythonpath issues with apache when starting django server.

2016-04-07 Thread Jonty Needham
I'm running mod-wsgi and I've got the following config in my Virtualhost in
my apache site config:

SetEnv F3_SECRET_KEY Very_secret_keySetEnv DJANGO_SETTINGS_MODULE
config.settings.setttings
WSGIScriptAlias / /var/django/path/to/my/app/config/wsgi.py
WSGIDaemonProcess wsgiprocess
python-path=/usr/lib/python3.4:/var/django/path/to/my/code:/var/django/path/to/venv/lib/python3.4/site-packagesWSGIProcessGroup
wsgiprocess


The issue comes when I try to visit the site. I get the error:
[Thu Apr 07 23:50:22.049822 2016] [:error] [pid 22397:tid 3051346752]
[remote 127.0.0.1:17079]   File "/usr/lib/python3.4/datetime.py", line
611, in 
[Thu Apr 07 23:50:22.050611 2016] [:error] [pid 22397:tid 3051346752]
[remote 127.0.0.1:17079] timedelta.min = timedelta(-9)
[Thu Apr 07 23:50:22.050658 2016] [:error] [pid 22397:tid 3051346752]
[remote 127.0.0.1:17079] TypeError: this constructor takes no
arguments


Clearly this is a path issue since datetime is a core library, but I
can't figure it out. If anyone can see what's wrong then I'd
appreciate the help.

-- 
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/CANOQRbwGWtE7JBeGfoqAmte%3DWaZePSAjvMcUuo1v%3DiXm8dhT2w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Any Django users based in Chile?

2016-04-07 Thread 'Mariano Baragiola' via Django users

FYI https://people.djangoproject.com/

Cheers from Argentina.

--
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/5706AC2A.7020500%40yahoo.com.
For more options, visit https://groups.google.com/d/optout.


query on django orm :- please help me to make a django base queryset, i have tried a lot but unable to make it.

2016-04-07 Thread JAI PRAKASH SINGH
hello all, 
 
please help me to make a  django base queryset, i have tried a lot but 
unable to make it 

my records present are like under 

Model name:-  MobileInfo

id   brandmodel_nameprice
1aaa   123  30
2aaa   123  35
3bbb345 60
4bbb345 65
5bbb345 55
6ccc321 40
7ccc321 45


now i want to extract the records like  under 


1aaa   123  30
5bbb345 55
6ccc321 40


please help me, i have stuck here 







-- 
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/221304c2-8118-43e0-a0fe-cdcf3300b7fc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How to know which models have changed and need make migrations?

2016-04-07 Thread Daniel Roseman
You shouldn't ever need to make migrations in production. You make them in dev, 
commit to source control, deploy along with the rest of the code, then run the 
migrations in prod.

-- 
DR.

-- 
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/4054850c-1830-4b74-831a-1ac34fa213a1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Applying migrations to multiple databases in django?

2016-04-07 Thread Amir Meirbekov
Please, take a look at this question 
.
 
Spent whole day screening source code, but still can't figure out the 
problem.


-- 
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/3559324e-c23b-4755-b6a2-0bdaed7ae711%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Restoring deleted entries with db_constraint = False

2016-04-07 Thread Olivier Dalang
Hi,

I need to implement the ability to restore deleted entries in the admin.
Django-reversion handles this, but it doesn't seem to work well with
relations : they aren't restored (at least in my tests).

I thought of setting

class MainModel(models.Model):
> ...
> class RelatedModel(models.Model):
> fk = models.ForeignKey( 'MainModel', db_constraint=False,
> on_delete=models.DO_NOTHING )


so that the related entries are kept when the main entries are deleted, and
that whenever I restore the MainModel, the RelatedModel will still be there.

I'm not sure if this is a great idea or if this will cause trouble at some
point. The doc says :

> That said, here are some scenarios where you might want to do this:
> - You have legacy data that is not valid.
> - You’re sharding your database.

 and I'm in neither of these scenarios...

I'd love some advice to know whether I'm on the verge of doing something
stupid ;)

Thanks !

Olivier Dalang

-- 
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/CAExk7p1k1p8oPGx-uA-aL4LDeuGKR0U3WXwp6tKX2BViQ39wAg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Looking for ways to improve my skills

2016-04-07 Thread Devrhoid Davis
Thank you Asif.

Do you have any resources, books etc with these projects?
regards,
Devrhoid

Sincerely;
Devrhoid O. Davis,
devrhoid.da...@gmail.com / devrhoid.da...@outlook.com
(876)491-6186 | (876) 783-0452
BSc. Medical Physics /w Electronics,
Research Assistant,
Department of Physics,
University of the West Indies Mona,
Kingston 7,
Jamaica.

"For in all things, excellence is becoming of he who perseveres"

On Wed, Apr 6, 2016 at 12:15 PM, Asif Saifuddin  wrote:

> Hi,
> I have been working with django for 3years. 1 thing I wanna add with
> others, that is I tried django based popular cms project like mezzanine,
> django-cms, wagtail etc. and other popular django packages docs and source
> code. This helped me a lot to understand different parts of django's use
> cases.
>
> Regards
>
> auvipy
>
> On Sunday, April 3, 2016 at 4:37:22 AM UTC+6, Devrhoid Davis wrote:
>>
>> Hi All,
>>
>> I have been working with Python for just over 3 years now and have
>> recently taken up django. I have completed both the polls app and have
>> created an address book app by following a tutorial on youtube. I am
>> looking fro ways to improve my competence with django and possibly some end
>> to end website projects. Can anyone provide me with some links as to where
>> I could find resources for improving my skills and then avenues for using
>> these skills to generate income?
>>
>> Thanks in advance.
>>
>> Regards,
>> Devrhoid
>>
>> --
> 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/e8dd6d1c-7120-4578-9eaa-633e65fdae7e%40googlegroups.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAH5S8Zg-4YVu%2BEeK878tmUCgikmMDsAqMDTgJsajeJCxk52anQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Any Django users based in Chile?

2016-04-07 Thread Vijay Khemlani
Chilean Django dev here

We are not many, but at least there are plenty of Python developers here.

Regards!

On Thu, Apr 7, 2016 at 12:24 PM, John  wrote:

> Curious to connect with Django devs in Chile.
>
> Hoping to do a Django project with Chilean devs in the coming months and
> would love to connect a bit more with the Django community there.
>
> Drop me a note if you're a Chilean dev floating around in the group.
> 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 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/e3ad9d7b-00ab-4f1e-88ff-8f00f2f36fb4%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CALn3ei1yDakpMJB1i_f5S3R6C6mQXbNjA69gh2e4yR-BrG24KQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Pycharm and DJANGO_SETTINGS_MODULE

2016-04-07 Thread Dariusz Mysior
Hi in linux console it's ok but in Pycharm in IPython console when I 
execute f.e. from django.contrib.auth.models import AbstractUser i have bug 
like below


django.core.exceptions.ImproperlyConfigured: Requested setting CACHES, but 
> settings are not configured. You must either define the environment 
> variable DJANGO_SETTINGS_MODULE or call settings.configure() before 
> accessing settings.
>
>
In Run Configuration in environment paramets I have DJANGO_SETTINGS_MODULE 
with mysite.settings, wsgi and manage also have this info, where can I 
check it 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 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/6ac3b375-f97b-4b03-8429-2b36b95c6f48%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How to know which models have changed and need make migrations?

2016-04-07 Thread Neto
In my localhost is everything migrated, but in production have "Run 
'manage.py makemigrations' to make new migrations, and then re-run 
'manage.py migrate' to apply them."
How to know which models have changed and need make migrations? Exist a 
command to know?

-- 
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/2902f9a3-e7f6-43cb-b920-eb735f7e288f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


installation steps for django and virtualenv setup.

2016-04-07 Thread srinivas tummalapalli
Hi santosh,i installed oracle VM virtual box and linux mint,  can send the 
installation steps for django and virtualenv setup.

-- 
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/a4e14400-a7e6-47c1-b7e6-0d8edd92b626%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Any Django users based in Chile?

2016-04-07 Thread John
Curious to connect with Django devs in Chile. 

Hoping to do a Django project with Chilean devs in the coming months and 
would love to connect a bit more with the Django community there. 

Drop me a note if you're a Chilean dev floating around in the group. 
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 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/e3ad9d7b-00ab-4f1e-88ff-8f00f2f36fb4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Does anyone use Django on bluehost? "Cant find fcgi module" error on line 9 .

2016-04-07 Thread djangogirl21
We are using django on bluehost. Installed python, flup, django, and using 
a postgres server. Every time I try and run fcgi it gives an error that the 
module does not exist. Verified with bluehost that it is on our server. Put 
it in the htaccess file Help anyone

-- 
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/92e44c25-a04d-4648-a315-301c321fb2d4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Problems with dumpdata/loaddata

2016-04-07 Thread ludovic coues
I believe the json file start with 0xff 0xfe, which mark the file as
UTF-16. The problem is that these two character are invalid at the
beginning of a json file.
The problem have the same root for the xml. UTF-16 file but it pretend
it is utf-8 encoded.

These problems might go away on another OS or with python 3.
Another solution might be to open the file with notepad++ and save as
utf-8, without BOM.

2016-04-06 16:10 GMT+02:00  :
> Thank you for the replies. members and posts are the names of my apps.
>
> The first line of the XML file when I open it in Notepad says:
>
> 
>
> The JSON file has no distinguishable first line, it just starts right away
> with the data.
>
>
>
> On Wednesday, April 6, 2016 at 1:45:44 AM UTC+2, jorr...@gmail.com wrote:
>>
>> I want to dump and load data for two apps that I have. Using dumpdata
>> works fine:
>>
>> python manage.py dumpdata members posts > data.json
>>
>> or
>>
>> python manage.py dumpdata members posts --format=xml > data.xml
>>
>> However, when I try to load the same data back with loaddata I get the
>> following errors:
>>
>> With JSON:
>> Traceback (most recent call last):
>>   File "manage.py", line 10, in 
>> execute_from_command_line(sys.argv)
>>   File "C:\Python27\lib\site-packages\django\core\management\__init__.py",
>> line 353, in ex
>> utility.execute()
>>   File "C:\Python27\lib\site-packages\django\core\management\__init__.py",
>> line 345, in ex
>> self.fetch_command(subcommand).run_from_argv(self.argv)
>>   File "C:\Python27\lib\site-packages\django\core\management\base.py",
>> line 348, in run_fr
>> self.execute(*args, **cmd_options)
>>   File "C:\Python27\lib\site-packages\django\core\management\base.py",
>> line 399, in execut
>> output = self.handle(*args, **options)
>>   File
>> "C:\Python27\lib\site-packages\django\core\management\commands\loaddata.py",
>> line 6
>> self.loaddata(fixture_labels)
>>   File
>> "C:\Python27\lib\site-packages\django\core\management\commands\loaddata.py",
>> line 1
>> self.load_label(fixture_label)
>>   File
>> "C:\Python27\lib\site-packages\django\core\management\commands\loaddata.py",
>> line 1
>> for obj in objects:
>>   File "C:\Python27\lib\site-packages\django\core\serializers\json.py",
>> line 76, in Deseri
>> stream_or_string = stream_or_string.decode('utf-8')
>>   File "C:\Python27\lib\encodings\utf_8.py", line 16, in decode
>> return codecs.utf_8_decode(input, errors, True)
>> UnicodeDecodeError: 'utf8' codec can't decode byte 0xff in position 0:
>> invalid start byte
>>
>>
>>
>> With XML:
>> Traceback (most recent call last):
>>   File "manage.py", line 10, in 
>> execute_from_command_line(sys.argv)
>>   File "C:\Python27\lib\site-packages\django\core\management\__init__.py",
>> line 353, in execute_from_comman
>> utility.execute()
>>   File "C:\Python27\lib\site-packages\django\core\management\__init__.py",
>> line 345, in execute
>> self.fetch_command(subcommand).run_from_argv(self.argv)
>>   File "C:\Python27\lib\site-packages\django\core\management\base.py",
>> line 348, in run_from_argv
>> self.execute(*args, **cmd_options)
>>   File "C:\Python27\lib\site-packages\django\core\management\base.py",
>> line 399, in execute
>> output = self.handle(*args, **options)
>>   File
>> "C:\Python27\lib\site-packages\django\core\management\commands\loaddata.py",
>> line 60, in handle
>> self.loaddata(fixture_labels)
>>   File
>> "C:\Python27\lib\site-packages\django\core\management\commands\loaddata.py",
>> line 100, in loaddata
>> self.load_label(fixture_label)
>>   File
>> "C:\Python27\lib\site-packages\django\core\management\commands\loaddata.py",
>> line 152, in load_label
>> for obj in objects:
>>   File "C:\Python27\lib\site-packages\django\utils\six.py", line 558, in
>> next
>> return type(self).__next__(self)
>>   File
>> "C:\Python27\lib\site-packages\django\core\serializers\xml_serializer.py",
>> line 174, in __next__
>> for event, node in self.event_stream:
>>   File "C:\Python27\lib\xml\dom\pulldom.py", line 232, in next
>> rc = self.getEvent()
>>   File "C:\Python27\lib\xml\dom\pulldom.py", line 265, in getEvent
>> self.parser.feed(buf)
>>   File "C:\Python27\lib\xml\sax\expatreader.py", line 217, in feed
>> self._err_handler.fatalError(exc)
>>   File "C:\Python27\lib\xml\sax\handler.py", line 38, in fatalError
>> raise exception
>> xml.sax._exceptions.SAXParseException: :1:31: encoding specified
>> in XML declaration is incorrect
>>
>> What gives?
>
> --
> 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/djang

Re: New Django User

2016-04-07 Thread Bruno Barbosa
Hello Chen, welcome to Django community!

I think you can start with Django Tutorial:
https://docs.djangoproject.com/en/1.9/intro/tutorial01/

Good luck!

--
Bruno Barbosa
Web Developer
*brunobarbosa.com.br *

On Thu, Apr 7, 2016 at 6:29 AM, Chen  wrote:

> I'm new to Django.. I actually wanted to take inputs from a web user
> through web page and then using those inputs perform further operations. So
> does Django helps in connecting HTML, Python and PHP altogether?
> How do I connect a html and python file?
>
> I have a user login page which I can proceed with HTML and PHP very
> smoothly. After login, the recommendation part comes where using the user's
> activity some recommendations are made to the user. So how should I proceed
> with the recommendation part which is implemented in Python. How to track
> user's activity?
> Please suggest. I haven't worked with Python Web Framework before.
>
> --
> 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/be0e61e1-b3c0-428e-b0e3-af308117d506%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAHxcCH5tX8ASvQc6kRs20bP15-1hx%3D%3D6-w1WpdV8t1wwS0_ekg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Dedicated pages for specific group members

2016-04-07 Thread Larry Martell
On Thu, Apr 7, 2016 at 3:56 AM, Luca Brandi  wrote:
> Hi
> is there a possibility to create some group members and let them have some
> secific url pages accessible to?
> I am thinking to a kind of "if staff is member of group"open link page..

A quick google for this came up with:

http://stackoverflow.com/questions/4597401/django-user-permissions-to-certain-views
http://stackoverflow.com/questions/14335832/restrict-so-users-only-view-a-certain-part-of-website-django
http://stackoverflow.com/questions/12597864/how-to-restrict-access-to-pages-based-on-user-type-in-django

-- 
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/CACwCsY5TeX8Tm-sCFzD89-aaQ6XK18V%2BSwS2W-2HbMCKjNyFLw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


New Django User

2016-04-07 Thread Chen
I'm new to Django.. I actually wanted to take inputs from a web user 
through web page and then using those inputs perform further operations. So 
does Django helps in connecting HTML, Python and PHP altogether?
How do I connect a html and python file?

I have a user login page which I can proceed with HTML and PHP very 
smoothly. After login, the recommendation part comes where using the user's 
activity some recommendations are made to the user. So how should I proceed 
with the recommendation part which is implemented in Python. How to track 
user's activity?
Please suggest. I haven't worked with Python Web Framework before.

-- 
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/be0e61e1-b3c0-428e-b0e3-af308117d506%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Suggest newsletter to integrate in django project

2016-04-07 Thread Luca Brandi
Hi,
followed some tutorials on the web integrating Mailchimp in my django 
project but not working...
Any suggestion on a similar service easily to integrate in django? 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 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/6948e4cb-9fde-489a-aa85-1b8dd7daba5e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Django + apache + mysql on mac

2016-04-07 Thread Akshay Rajput
Hi all, 
I am trying to install django apache and mysql on OS X 10.11 EL 
Capital, Since this OS comes with apache 2.4 already installed, please help 
me installing mysql and connecting it to phpmyadmin and configuring it in 
Django. I tried online tutorial but It did not help, as soon as, I set 
password for mysql root phpmyadmin does not connect to it.

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 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/629658a3-10b0-4b78-b5bd-1f64cec83e4a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Dedicated pages for specific group members

2016-04-07 Thread Luca Brandi
Hi
is there a possibility to create some group members and let them have some 
secific url pages accessible to?
I am thinking to a kind of "if staff is member of group"open link page..
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 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/4939783c-39a7-4ca3-82e0-319be064b36c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Why I can not run my test, namely my custom apps with django-nose?

2016-04-07 Thread Seti Volkylany
*Project structure:*
apps
├── app_accounts
│   ├── admin.py
│   ├── apps.py
│   ├── backends.py
│   ├── forms.py
│   ├── __init__.py
│   ├── managers.py
│   ├── migrations
│   │   ├── 0001_initial.py
│   │   ├── 0002_auto_20160407_0938.py
│   │   ├── __init__.py
│   │   └── __pycache__
│   │   ├── 0001_initial.cpython-34.pyc
│   │   ├── 0002_auto_20160407_0938.cpython-34.pyc
│   │   └── __init__.cpython-34.pyc
│   ├── models.py
│   ├── __pycache__
│   │   ├── admin.cpython-34.pyc
│   │   ├── apps.cpython-34.pyc
│   │   ├── backends.cpython-34.pyc
│   │   ├── forms.cpython-34.pyc
│   │   ├── __init__.cpython-34.pyc
│   │   ├── managers.cpython-34.pyc
│   │   ├── models.cpython-34.pyc
│   │   ├── signals.cpython-34.pyc
│   │   ├── test_models.cpython-34.pyc
│   │   ├── urls.cpython-34.pyc
│   │   └── views.cpython-34.pyc
│   ├── static
│   │   └── app_accounts
│   │   ├── css
│   │   │   └── app_accounts.css
│   │   ├── img
│   │   └── js
│   │   └── app_accounts.js
│   ├── templates
│   │   └── app_accounts
│   │   ├── account_create.html
│   │   ├── account_delete.html
│   │   ├── account_detail.html
│   │   ├── account_page.html
│   │   ├── account_profile.html
│   │   ├── account_update.html
│   │   ├── app_accounts_skeleton.html
│   │   ├── login.html
│   │   ├── logout.html
│   │   ├── password_change_done.html
│   │   ├── password_change_form.html
│   │   ├── password_reset_complete.html
│   │   ├── password_reset_confirm.html
│   │   ├── password_reset_done.html
│   │   ├── password_reset_email.html
│   │   └── password_reset_form.html
│   ├── test_models.py
│   ├── urls.py
│   └── views.py
├── app_dictionaries
│   ├── admin.py
│   ├── apps.py
│   ├── forms.py
│   ├── __init__.py
│   ├── migrations
│   │   ├── 0001_initial.py
│   │   ├── __init__.py
│   │   └── __pycache__
│   │   ├── 0001_initial.cpython-34.pyc
│   │   └── __init__.cpython-34.pyc
│   ├── models.py
│   ├── __pycache__
│   │   ├── admin.cpython-34.pyc
│   │   ├── apps.cpython-34.pyc
│   │   ├── forms.cpython-34.pyc
│   │   ├── __init__.cpython-34.pyc
│   │   ├── managers.cpython-34.pyc
│   │   ├── models.cpython-34.pyc
│   │   ├── signals.cpython-34.pyc
│   │   ├── urls.cpython-34.pyc
│   │   └── views.cpython-34.pyc
│   ├── static
│   │   └── app_dictionaries
│   │   ├── css
│   │   │   └── app_dictionaries.css
│   │   ├── images
│   │   └── js
│   │   └── app_dictionaries.js
│   ├── templates
│   │   └── app_dictionaries
│   │   ├── app_dictionaries_skeleton.html
│   │   ├── dictionary_detail.html
│   │   ├── dictionary_list.html
│   │   ├── modals_for_glossary.html
│   │   ├── modals_for_programmer_dicts.html
│   │   ├── modals_for_translator.html
│   │   ├── programmer_dict_category_detail.html
│   │   ├── sample_add_instruction_to_programmer_dict.html
│   │   ├── sample_add_phrase_to_glossary.html
│   │   ├── sample_add_phrase_to_translator.html
│   │   ├── sample_all_glossaries.html
│   │   ├── sample_all_programmer_dicts_categories.html
│   │   ├── sample_all_programmer_dicts.html
│   │   ├── sample_all_translators.html
│   │   ├── sample_glossaries_for_import_phrases.html
│   │   ├── sample_glossary_content_and_phrases.html
│   │   ├── sample_instructions_programmer_dict.html
│   │   ├── sample_phrases_glossary.html
│   │   ├── sample_phrases_translator.html
│   │   ├── sample_programmer_dict_content_and_instructions.html
│   │   └── sample_translator_content_and_phrases.html
│   ├── tests
│   │   ├── __pycache__
│   │   │   ├── tests.cpython-34.pyc
│   │   │   └── tests_live.cpython-34.pyc
│   │   ├── tests_live.py
│   │   └── tests.py
│   ├── urls.py
│   └── views.py
├── app_feedback
│   ├── admin.py
│   ├── apps.py
│   ├── forms.py
│   ├── __init__.py
│   ├── migrations
│   │   ├── __init__.py
│   │   └── __pycache__
│   │   └── __init__.cpython-34.pyc
│   ├── __pycache__
│   │   ├── admin.cpython-34.pyc
│   │   ├── apps.cpython-34.pyc
│   │   ├── forms.cpython-34.pyc
│   │   ├── __init__.cpython-34.pyc
│   │   ├── models.cpython-34.pyc
│   │   ├── tests.cpython-34.pyc
│   │   ├── urls.cpython-34.pyc
│   │   └── views.cpython-34.pyc
│   ├── static
│   │   └── app_feedback
│   │   ├── css
│   │   │   └── app_feedback.css
│   │   └── js
│   │   └── app_feedback.js
│   ├── templates
│   │   └── app_feedback
│   │   └── feedback.html
│   ├── tests.py
│   ├── urls.py
│   └── views.py
├── app_polls
│   ├── admin.py
│   ├── apps.py
│   ├── __init__.py
│   ├── migrations
│   │   ├── 0001_initial.py
│   │   ├── 0002_auto_20160314_1639.py
│   │   ├── 0003_auto_20160316_1916.py
│   │   ├── 0004_question_count_voters.py
│   │   ├── 0005_auto_20160405_1756.py
│   │   ├── __init__.py
│   │   └── __pycache__
│   │   ├── 0001_initial.cpython-34.pyc
│   │   ├── 0002_auto_20160314_1639.cpython-